Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lianhao
Copy link
Collaborator

@lianhao lianhao commented Jun 25, 2025

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.

  • Bug fix (non-breaking change which fixes an issue)

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

Describe the tests that you ran to verify your changes.

Copy link
Contributor

@eero-t eero-t left a 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):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] can not launch lvm-llava-gaudi
2 participants