Transformers
GGUF
Italian
English
Inference Endpoints
conversational
Edit model card

QuantFactory Banner

QuantFactory/Lexora-Medium-7B-GGUF

This is quantized version of DeepMount00/Lexora-Medium-7B created using llama.cpp

Original Model Card

How to Use

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))
Downloads last month
344
GGUF
Model size
7.62B params
Architecture
qwen2

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference API
Unable to determine this model’s pipeline type. Check the docs .

Datasets used to train QuantFactory/Lexora-Medium-7B-GGUF