Skip to content

Commit

Permalink
add llm_deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
lwaekfjlk committed Oct 11, 2023
1 parent 117128f commit b3eb7b9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ We split our overall framework into multiple parts

1. Data Processing --> Output general form of sotopia train and test data
2. Together AI Finetuning --> Input the train and test data / Output model checkpoint
3. LLM Finetuning --> Input the train and test data / Output model checkpoint + deployed model API form
4. Eval --> Input model checkpoint / Output evaluation scores
3. LLM Finetuning --> Input the train and test data / Output model checkpoint
4. LLM Deplyment --> Input LLM Finetuned model checkpoint / Output Deployable OpenAI type API
5. Eval --> Input model checkpoint / Output evaluation scores
1 change: 1 addition & 0 deletions llm_deploy/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python -m vllm.entrypoints.openai.api_server --model ../llm_ft/vicuna-7b-1.5
1 change: 1 addition & 0 deletions llm_deploy/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vllm
6 changes: 6 additions & 0 deletions llm_deploy/vllm_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from vllm import LLM

prompts = ["Hello, my name is", "The capital of France is"] # Sample prompts.
llm = LLM(model="../llm_ft/vicuna-7b-1.5") # Create an LLM.
outputs = llm.generate(prompts) # Generate texts from the prompts.
print(outputs)

0 comments on commit b3eb7b9

Please sign in to comment.