Update README.md
Browse files
README.md
CHANGED
@@ -56,9 +56,9 @@ messages = [
|
|
56 |
{"role": "user", "content": "Who are you?"},
|
57 |
]
|
58 |
|
59 |
-
prompts = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True
|
60 |
|
61 |
-
llm = LLM(model=model_id, trust_remote_code=True, max_model_len=4096)
|
62 |
|
63 |
outputs = llm.generate(prompts, sampling_params)
|
64 |
|
|
|
56 |
{"role": "user", "content": "Who are you?"},
|
57 |
]
|
58 |
|
59 |
+
prompts = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
60 |
|
61 |
+
llm = LLM(model=model_id, trust_remote_code=True, max_model_len=4096, tensor_parallel_size=4)
|
62 |
|
63 |
outputs = llm.generate(prompts, sampling_params)
|
64 |
|