Views
No views yet
1import transformers as tf, torch
2model_name = "SpectraSuite/QuantLM_1.1B_8bit_Unpacked"
3# Please adjust the temperature, repetition penalty, top_k, top_p and other sampling parameters according to your needs.
4pipeline = tf.pipeline("text-generation", model=model_id, model_kwargs={"torch_dtype": torch.float16}, device_map="auto")
5# These are base (pretrained) LLMs that are not instruction and chat tuned. You may need to adjust your prompt accordingly.
6pipeline("Once upon a time")