Update README.md
Browse files
README.md
CHANGED
@@ -45,15 +45,15 @@ For fast inference use, we would recommend the 'quantized tool' version, e.g.,
|
|
45 |
eos_token_id=tokenizer.eos_token_id,
|
46 |
pad_token_id=tokenizer.eos_token_id,
|
47 |
do_sample=True,
|
48 |
-
temperature=0.
|
49 |
-
max_new_tokens=
|
50 |
)
|
51 |
|
52 |
output_only = tokenizer.decode(outputs[0][start_of_input:], skip_special_tokens=True)
|
53 |
|
54 |
print("output only: ", output_only)
|
55 |
|
56 |
-
|
57 |
|
58 |
# here's the fun part
|
59 |
try:
|
@@ -72,10 +72,10 @@ For fast inference use, we would recommend the 'quantized tool' version, e.g.,
|
|
72 |
<summary>Using as Function Call in LLMWare</summary>
|
73 |
|
74 |
from llmware.models import ModelCatalog
|
75 |
-
slim_model = ModelCatalog().load_model("llmware/slim-q-gen-phi-3")
|
76 |
-
response = slim_model.function_call(text,params=["boolean"], function="generate")
|
77 |
|
78 |
-
print("llmware - llm_response: ", response)
|
79 |
|
80 |
</details>
|
81 |
|
|
|
45 |
eos_token_id=tokenizer.eos_token_id,
|
46 |
pad_token_id=tokenizer.eos_token_id,
|
47 |
do_sample=True,
|
48 |
+
temperature=0.7,
|
49 |
+
max_new_tokens=200
|
50 |
)
|
51 |
|
52 |
output_only = tokenizer.decode(outputs[0][start_of_input:], skip_special_tokens=True)
|
53 |
|
54 |
print("output only: ", output_only)
|
55 |
|
56 |
+
[OUTPUT]: {'llm_response': {'question': ['Did Telsa stock decline more than 8% yesterday?']} }
|
57 |
|
58 |
# here's the fun part
|
59 |
try:
|
|
|
72 |
<summary>Using as Function Call in LLMWare</summary>
|
73 |
|
74 |
from llmware.models import ModelCatalog
|
75 |
+
slim_model = ModelCatalog().load_model("llmware/slim-q-gen-phi-3", sample=True, temperature=0.7)
|
76 |
+
response = slim_model.function_call(text,params=["boolean"], function="generate")
|
77 |
|
78 |
+
print("llmware - llm_response: ", response)
|
79 |
|
80 |
</details>
|
81 |
|