Skip to content

Commit

Permalink
minor fix in test_ui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tjluyao committed Jul 7, 2024
1 parent 97a60b7 commit 802030a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions server/examples/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _create_request(self, lora_id: str, lora_or_base: str):
else:
raise ValueError(f"Unknown lora_or_base={lora_or_base}")
prompt = random.choice(prompts)
inputs = json.dumps({"inputs": prompt, "lora_id": lora_id})
inputs = prompt

request = generate_pb2.Request(
id=self.id,
Expand Down Expand Up @@ -128,7 +128,7 @@ class MultiLoraTui(App):
scrollbar-size: 1 1;
}
"""
TITLE = "Punica-TGI Multi-LoRA serving demo"
TITLE = "kv.run multi-LoRA serving demo"

BINDINGS = [
Binding(key="q", action="quit", description="Quit"),
Expand Down Expand Up @@ -167,15 +167,16 @@ def on_multi_lora_tui_append_box(self, msg: AppendBox):
project_root = pathlib.Path(__file__).parents[1]
model_dir = project_root / "model"

base_model = "meta-llama/Llama-2-7b-hf"
# base_model = "meta-llama/Llama-2-7b-hf"
# model_type = "llama"
# lora_ids = ['abcdabcd987/gsm8k-llama2-7b-lora-16',
# 'abcdabcd987/sqlctx-llama2-7b-lora-16',
# 'abcdabcd987/viggo-llama2-7b-lora-16']
base_model = "tjluyao/llama-3-8b"
model_type = "llama"
lora_ids = ['abcdabcd987/gsm8k-llama2-7b-lora-16',
'abcdabcd987/sqlctx-llama2-7b-lora-16',
'abcdabcd987/viggo-llama2-7b-lora-16']
# base_model = "tjluyao/llama-3-8b"
# lora_ids = ['tjluyao/llama-3-8b-math',
# 'tjluyao/llama-3-8b-oaast',
# 'tjluyao/llama-3-8b-zh']
lora_ids = ['tjluyao/llama-3-8b-math',
'tjluyao/llama-3-8b-oaast',
'tjluyao/llama-3-8b-zh']

lora_specs = {}
for name, spec in DEMO.items():
Expand Down

0 comments on commit 802030a

Please sign in to comment.