Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Lexora-Lite-3B.Q2_K.gguf | Q2_K | 1.19GB |
| Lexora-Lite-3B.IQ3_XS.gguf | IQ3_XS | 1.3GB |
| Lexora-Lite-3B.IQ3_S.gguf | IQ3_S | 1.36GB |
| Lexora-Lite-3B.Q3_K_S.gguf | Q3_K_S | 1.35GB |
| Lexora-Lite-3B.IQ3_M.gguf | IQ3_M | 1.39GB |
| Lexora-Lite-3B.Q3_K.gguf | Q3_K | 1.48GB |
| Lexora-Lite-3B.Q3_K_M.gguf | Q3_K_M | 1.48GB |
| Lexora-Lite-3B.Q3_K_L.gguf | Q3_K_L | 1.59GB |
| Lexora-Lite-3B.IQ4_XS.gguf | IQ4_XS | 1.63GB |
| Lexora-Lite-3B.Q4_0.gguf | Q4_0 | 1.7GB |
| Lexora-Lite-3B.IQ4_NL.gguf | IQ4_NL | 1.71GB |
| Lexora-Lite-3B.Q4_K_S.gguf | Q4_K_S | 1.71GB |
| Lexora-Lite-3B.Q4_K.gguf | Q4_K | 1.8GB |
| Lexora-Lite-3B.Q4_K_M.gguf | Q4_K_M | 1.8GB |
| Lexora-Lite-3B.Q4_1.gguf | Q4_1 | 1.86GB |
| Lexora-Lite-3B.Q5_0.gguf | Q5_0 | 2.02GB |
| Lexora-Lite-3B.Q5_K_S.gguf | Q5_K_S | 2.02GB |
| Lexora-Lite-3B.Q5_K.gguf | Q5_K | 2.07GB |
| Lexora-Lite-3B.Q5_K_M.gguf | Q5_K_M | 2.07GB |
| Lexora-Lite-3B.Q5_1.gguf | Q5_1 | 2.18GB |
| Lexora-Lite-3B.Q6_K.gguf | Q6_K | 2.36GB |
| Lexora-Lite-3B.Q8_0.gguf | Q8_0 | 3.06GB |
1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4model_name = "DeepMount00/Lexora-Lite-3B"
5
6tokenizer = AutoTokenizer.from_pretrained(model_name)
7model = AutoModelForCausalLM.from_pretrained(
8 model_name,
9 torch_dtype=torch.bfloat16,
10 device_map="auto",
11)
12
13prompt = [{'role': 'user', 'content': """Marco ha comprato 5 scatole di cioccolatini. Ogni scatola contiene 12 cioccolatini. Ha deciso di dare 3 cioccolatini a ciascuno dei suoi 7 amici. Quanti cioccolatini gli rimarranno dopo averli distribuiti ai suoi amici?"""}]
14inputs = tokenizer.apply_chat_template(
15 prompt,
16 add_generation_prompt=True,
17 return_tensors='pt'
18)
19tokens = model.generate(
20 inputs.to(model.device),
21 max_new_tokens=1024,
22 temperature=0.001,
23 do_sample=True
24)
25
26print(tokenizer.decode(tokens[0], skip_special_tokens=False))