-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes port issues and a dataprep endpoint referenced by the UI #50
Changes from 2 commits
62cea74
5c36443
ee0e5cc
f07cf1d
27fdbca
cbe5805
d953332
6600c32
dc4ec31
fa70be2
cebd9be
aa4e9a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ export WHISPER_PORT=7066 | |
export WHISPER_SERVER_ENDPOINT="http://${host_ip}:${WHISPER_PORT}/v1/asr" | ||
export MAX_IMAGES=1 | ||
export WHISPER_MODEL="base" | ||
export DATAPREP_MMR_PORT=5000 | ||
export DATAPREP_MMR_PORT=6007 | ||
export DATAPREP_INGEST_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/ingest" | ||
export DATAPREP_GEN_TRANSCRIPT_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/generate_transcripts" | ||
export DATAPREP_GEN_CAPTION_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/generate_captions" | ||
|
@@ -282,15 +282,6 @@ wget https://github.com/intel/intel-extension-for-transformers/raw/main/intel_ex | |
|
||
Test dataprep microservice with generating transcript. This command updates a knowledge base by uploading a local video .mp4 and an audio .wav file. | ||
|
||
```bash | ||
export DATAPREP_MMR_PORT=6007 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question from above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Xeon and Gaudi READMEs got these extra exports somehow during the refactor, but if you set them with external port 6007 initially, you don't need to do it again. |
||
export DATAPREP_INGEST_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/ingest" | ||
export DATAPREP_GEN_TRANSCRIPT_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/generate_transcripts" | ||
export DATAPREP_GEN_CAPTION_SERVICE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/generate_captions" | ||
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/get" | ||
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:${DATAPREP_MMR_PORT}/v1/dataprep/delete" | ||
``` | ||
|
||
```bash | ||
curl --silent --write-out "HTTPSTATUS:%{http_code}" \ | ||
${DATAPREP_GEN_TRANSCRIPT_SERVICE_ENDPOINT} \ | ||
|
@@ -324,6 +315,7 @@ Also, you are able to get the list of all files that you uploaded: | |
```bash | ||
curl -X POST \ | ||
-H "Content-Type: application/json" \ | ||
-d '{"file_path": "all"}' \ | ||
${DATAPREP_GET_FILE_ENDPOINT} | ||
``` | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ services: | |
- redis-vector-db | ||
- lvm | ||
ports: | ||
- "6007:${DATAPREP_MMR_PORT}" | ||
- "${DATAPREP_MMR_PORT}:5000" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this not be 6007? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 5000 internal port (right side) is hard-coded and that's okay as I understand. The configurable port is the external one and that one should be set to an env var (we use 6007 in tests and READMEs). |
||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
338-344 are being added to ROCM but removed here is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not adding them to ROCM, I'm changing them from using external port 5000 (a mistake, I think) to using external port 6007. I did not make that external port dynamic like the others, because we decided to change ROCM as little as possible and the pre-existing ROCM env vars file doesn't include that config.