Downloads · 30 days
244
11% of all-time downloads
RichardErkhov/mii-llm_-_maestrale-chat-v0.3-beta-gguf
mii-llm_-_maestrale-chat-v0.3-beta-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
244
11% of all-time downloads
All-time downloads
2.3K
Public
Repo size
72.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf85.7 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
maestrale-chat-v0.3-beta - GGUF
| Name | Quant method | Size |
|---|---|---|
| maestrale-chat-v0.3-beta.Q2_K.gguf | Q2_K | 2.53GB |
| maestrale-chat-v0.3-beta.Q3_K_S.gguf | Q3_K_S | 2.95GB |
| maestrale-chat-v0.3-beta.Q3_K.gguf | Q3_K | 3.28GB |
| maestrale-chat-v0.3-beta.Q3_K_M.gguf | Q3_K_M | 3.28GB |
| maestrale-chat-v0.3-beta.Q3_K_L.gguf | Q3_K_L | 3.56GB |
| maestrale-chat-v0.3-beta.IQ4_XS.gguf | IQ4_XS | 3.67GB |
| maestrale-chat-v0.3-beta.Q4_0.gguf | Q4_0 | 3.83GB |
| maestrale-chat-v0.3-beta.IQ4_NL.gguf | IQ4_NL | 3.87GB |
| maestrale-chat-v0.3-beta.Q4_K_S.gguf | Q4_K_S | 3.86GB |
| maestrale-chat-v0.3-beta.Q4_K.gguf | Q4_K | 4.07GB |
| maestrale-chat-v0.3-beta.Q4_K_M.gguf | Q4_K_M | 4.07GB |
| maestrale-chat-v0.3-beta.Q4_1.gguf | Q4_1 | 4.24GB |
| maestrale-chat-v0.3-beta.Q5_0.gguf | Q5_0 | 4.65GB |
| maestrale-chat-v0.3-beta.Q5_K_S.gguf | Q5_K_S | 4.65GB |
| maestrale-chat-v0.3-beta.Q5_K.gguf | Q5_K | 4.78GB |
| maestrale-chat-v0.3-beta.Q5_K_M.gguf | Q5_K_M | 4.78GB |
| maestrale-chat-v0.3-beta.Q5_1.gguf | Q5_1 | 5.07GB |
| maestrale-chat-v0.3-beta.Q6_K.gguf | Q6_K | 5.53GB |
| maestrale-chat-v0.3-beta.Q8_0.gguf | Q8_0 | 7.17GB |
language:
By @efederici and @mferraretto
v0.3
This model uses ChatML prompt format:
<|im_start|>system
Sei un assistente utile.<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
from transformers import (
AutoTokenizer,
AutoModelForCausalLM,
GenerationConfig,
TextStreamer
)
import torch
tokenizer = AutoTokenizer.from_pretrained("mii-llm/maestrale-chat-v0.3-beta")
model = AutoModelForCausalLM.from_pretrained("mii-llm/maestrale-chat-v0.3-beta", load_in_8bit=True, device_map="auto")
gen = GenerationConfig(
do_sample=True,
temperature=0.7,
repetition_penalty=1.2,
top_k=50,
top_p=0.95,
max_new_tokens=500,
pad_token_id=tokenizer.eos_token_id,
eos_token_id=tokenizer.convert_tokens_to_ids("<|im_end|>")
)
streamer = TextStreamer(tokenizer, skip_prompt=True)
messages = [
{"role": "system", "content": "Sei un assistente utile."},
{"role": "user", "content": "{prompt}"}
]
with torch.no_grad():
temp = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(temp, return_tensors="pt").to("cuda")
_ = model.generate(
**inputs,
streamer=streamer,
generation_config=gen
)
It's a beta version, but it's not safe.