mii-community/ultrafeedback-translated-ita
Viewer • Updated • 140k • 19
How to use walid-iguider/Llama-3-8B-4bit-UltraChat-Ita with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="walid-iguider/Llama-3-8B-4bit-UltraChat-Ita") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("walid-iguider/Llama-3-8B-4bit-UltraChat-Ita")
model = AutoModelForCausalLM.from_pretrained("walid-iguider/Llama-3-8B-4bit-UltraChat-Ita")How to use walid-iguider/Llama-3-8B-4bit-UltraChat-Ita with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "walid-iguider/Llama-3-8B-4bit-UltraChat-Ita"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "walid-iguider/Llama-3-8B-4bit-UltraChat-Ita",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/walid-iguider/Llama-3-8B-4bit-UltraChat-Ita
How to use walid-iguider/Llama-3-8B-4bit-UltraChat-Ita with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "walid-iguider/Llama-3-8B-4bit-UltraChat-Ita" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "walid-iguider/Llama-3-8B-4bit-UltraChat-Ita",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "walid-iguider/Llama-3-8B-4bit-UltraChat-Ita" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "walid-iguider/Llama-3-8B-4bit-UltraChat-Ita",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use walid-iguider/Llama-3-8B-4bit-UltraChat-Ita with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for walid-iguider/Llama-3-8B-4bit-UltraChat-Ita to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for walid-iguider/Llama-3-8B-4bit-UltraChat-Ita to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for walid-iguider/Llama-3-8B-4bit-UltraChat-Ita to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="walid-iguider/Llama-3-8B-4bit-UltraChat-Ita",
max_seq_length=2048,
)How to use walid-iguider/Llama-3-8B-4bit-UltraChat-Ita with Docker Model Runner:
docker model run hf.co/walid-iguider/Llama-3-8B-4bit-UltraChat-Ita
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
For a detailed comparison of model performance, check out the Leaderboard for Italian Language Models.
Here's a breakdown of the performance metrics:
| Metric | hellaswag_it acc_norm | arc_it acc_norm | m_mmlu_it 5-shot acc | Average |
|---|---|---|---|---|
| Accuracy Normalized | 0.6064 | 0.4611 | 0.5328 | 0.5334 |
Base model
meta-llama/Meta-Llama-3-8B