Views
No views yet
| GGUF Link | Quantization | Description |
|---|---|---|
| Download | Q2_K | Lowest quality |
| Download | Q3_K_S | |
| Download | IQ3_S | Integer quant, preferable over Q3_K_S |
| Download | IQ3_M | Integer quant |
| Download | Q3_K_M | |
| Download | Q3_K_L | |
| Download | IQ4_XS | Integer quant |
| Download | Q4_K_S | Fast with good performance |
| Download | Q4_K_M | Recommended: Perfect mix of speed and performance |
| Download | Q5_K_S | |
| Download | Q5_K_M | |
| Download | Q6_K | Very good quality |
| Download | Q8_0 | Best quality |
| Download | f16 | Full precision, don't bother; use a quant |
Sure, here's the chain of thought:.<|im_start|>system
Generate a Chain of Thought chain.<|im_end|>
<|im_start|>user
Input: Where is Paris?
Response: France<|im_end|>
<|im_start|>assistant1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "LucidityAI/Koishi-1.5"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
6
7input_text = "What is the capital of France?"
8response_text = "Paris"
9
10messages = [
11 {"role": "system", "content": "Generate a Chain of Thought chain."},
12 {"role": "user", "content": f"Input: Where is Paris?\nResponse: France"}
13]
14
15inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
16
17outputs = model.generate(inputs, max_new_tokens=256, do_sample=True)
18print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))