Update README.md
#1
by
hgabor47
- opened
README.md
CHANGED
|
@@ -11,7 +11,7 @@ import transformers as tf, torch
|
|
| 11 |
model_name = "SpectraSuite/TriLM_3.9B_Unpacked"
|
| 12 |
|
| 13 |
# Please adjust the temperature, repetition penalty, top_k, top_p and other sampling parameters according to your needs.
|
| 14 |
-
pipeline = tf.pipeline("text-generation", model=
|
| 15 |
|
| 16 |
# These are base (pretrained) LLMs that are not instruction and chat tuned. You may need to adjust your prompt accordingly.
|
| 17 |
pipeline("Once upon a time")
|
|
|
|
| 11 |
model_name = "SpectraSuite/TriLM_3.9B_Unpacked"
|
| 12 |
|
| 13 |
# Please adjust the temperature, repetition penalty, top_k, top_p and other sampling parameters according to your needs.
|
| 14 |
+
pipeline = tf.pipeline("text-generation", model=model_name, model_kwargs={"torch_dtype": torch.float16}, device_map="auto")
|
| 15 |
|
| 16 |
# These are base (pretrained) LLMs that are not instruction and chat tuned. You may need to adjust your prompt accordingly.
|
| 17 |
pipeline("Once upon a time")
|