forked from haotian-liu/LLaVA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
700863b
commit 9221723
Showing
4 changed files
with
97 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# LLaVA (LoRA, Technical Preview) | ||
|
||
NOTE: This is a technical preview, and is not yet ready for production use. | ||
|
||
## Demo (Web UI) | ||
|
||
Please execute each of the command below one by one (after the previous one has finished). The commands are the same as launching other demos except for an additional `--model-base` flag to specify the base model to use. Please make sure the base model corresponds to the LoRA checkpoint that you are using. For this technical preview, you need Vicuna v1.1 (7B) checkpoint (if you do not have that already, follow the instructions [here](https://github.com/lm-sys/FastChat#vicuna-weights)). | ||
|
||
#### Launch a controller | ||
```Shell | ||
python -m llava.serve.controller --host 0.0.0.0 --port 10000 | ||
``` | ||
|
||
#### Launch a model worker | ||
```Shell | ||
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path liuhaotian/llava-vicuna-7b-v1.1-lcs_558k-instruct_80k_3e-lora-preview-alpha --model-base /path/to/vicuna-v1.1 | ||
``` | ||
Wait until the process finishes loading the model and you see "Uvicorn running on ...". | ||
|
||
#### Launch a gradio web server. | ||
```Shell | ||
python -m llava.serve.gradio_web_server --controller http://localhost:10000 | ||
``` | ||
|
||
## Training | ||
|
||
Please see training scripts at [`./scripts/deepspeed`](./scripts/deepspeed). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters