Downloads · 30 days
13
17% of all-time downloads
riccorl/Modello-Italia-9B-hf
Modello-Italia-9B-hf is a text generation model from riccorl. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
HF-compatible version of Modello Italia 9B, developed by iGenius.
Downloads · 30 days
13
17% of all-time downloads
All-time downloads
75
Public
Parameters
8.5B
17.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors17.1 GB · 100%
From the Hugging Face model README
HF-compatible version of Modello Italia 9B, developed by iGenius.
import torch
import transformers as tr
tokenizer = tr.AutoTokenizer.from_pretrained("riccorl/Modello-Italia-9B-hf")
model = tr.AutoModelForCausalLM.from_pretrained(
"riccorl/Modello-Italia-9B-hf",
device_map="auto",
torch_dtype=torch.bfloat16
)
MY_SYSTEM_PROMPT_SHORT = (
"Tu sei Modello Italia, un modello di linguaggio naturale addestrato da iGenius."
)
prompt = "Ciao, chi sei?"
messages = [
{"role": "system", "content": MY_SYSTEM_PROMPT_SHORT},
{"role": "user", "content": prompt},
]
tokenized_chat = tokenizer.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
)
out = model.generate(tokenized_chat.to("cuda"), max_new_tokens=200)
License: MIT(?)
License PDF: https://secure.igenius.ai/legal/italia_terms_and_conditions.pdf