-
Notifications
You must be signed in to change notification settings - Fork 198
llava: support air gapped environment #1814
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Lianhao Lu <[email protected]>
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.
Couple of typos, otherwise looks fine.
@@ -71,6 +71,25 @@ docker run -d --name llava-service -p 8399:8399 -e http_proxy=$http_proxy --ipc= | |||
docker run -d --name llava-service -p 8399:8399 --runtime=habana -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --cap-add=sys_nice --ipc=host -e http_proxy=$http_proxy -e https_proxy=$https_proxy opea/lvm-llava:latest | |||
``` | |||
|
|||
##### Running in the air gapped environment | |||
|
|||
The following steps are needed for running the service in air gapped environment(a.k.a. environment with no internet access): |
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.
The following steps are needed for running the service in air gapped environment(a.k.a. environment with no internet access): | |
The following steps are needed for running the service in an air gapped environment (a.k.a. environment with no internet access): |
huggingface-cli download --cache-dir ${model_dir} llava-hf/llava-1.5-7b-hf | ||
``` | ||
|
||
2. Launch the microservice by mounting the `modek_dir` directory into the container as the `/data` directory and setting environment variable `HF_HUB_OFFLINE` to `1`: |
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.
2. Launch the microservice by mounting the `modek_dir` directory into the container as the `/data` directory and setting environment variable `HF_HUB_OFFLINE` to `1`: | |
2. Launch the microservice by mounting the `model_dir` directory into the container as the `/data` directory and setting environment variable `HF_HUB_OFFLINE` to `1`: |
Description
llava: support air gapped environment
Issues
Part of #1484.
Fixed #1823.
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
List the newly introduced 3rd party dependency if exists.
Tests
Describe the tests that you ran to verify your changes.