Downloads · 30 days
357
11% of all-time downloads
QuantFactory/Lexora-Medium-7B-GGUF
Lexora-Medium-7B-GGUF is a machine learning model from QuantFactory. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
357
11% of all-time downloads
All-time downloads
3.1K
Public
Repo size
69 GB
Likes
2
Public
Click a slice to open those files.
.gguf69 GB · 100%
From the Hugging Face model README
This is quantized version of DeepMount00/Lexora-Medium-7B created using llama.cpp
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "DeepMount00/Lexora-Medium-7B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
)
prompt = [{'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?"""}]
inputs = tokenizer.apply_chat_template(
prompt,
add_generation_prompt=True,
return_tensors='pt'
)
tokens = model.generate(
inputs.to(model.device),
max_new_tokens=1024,
temperature=0.001,
do_sample=True
)
print(tokenizer.decode(tokens[0], skip_special_tokens=False))