Transformers
GGUF
Italian
English
conversational
How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf QuantFactory/Lexora-Medium-7B-GGUF:
# Run inference directly in the terminal:
llama-cli -hf QuantFactory/Lexora-Medium-7B-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf QuantFactory/Lexora-Medium-7B-GGUF:
# Run inference directly in the terminal:
llama-cli -hf QuantFactory/Lexora-Medium-7B-GGUF:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf QuantFactory/Lexora-Medium-7B-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf QuantFactory/Lexora-Medium-7B-GGUF:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf QuantFactory/Lexora-Medium-7B-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf QuantFactory/Lexora-Medium-7B-GGUF:
Use Docker
docker model run hf.co/QuantFactory/Lexora-Medium-7B-GGUF:
Quick Links

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
48
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support