xezpeleta/oasst1_eu_threads
Viewer • Updated • 9.94k • 112
How to use xezpeleta/openllama-3b-basque with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="xezpeleta/openllama-3b-basque") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("xezpeleta/openllama-3b-basque")
model = AutoModelForCausalLM.from_pretrained("xezpeleta/openllama-3b-basque")How to use xezpeleta/openllama-3b-basque with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "xezpeleta/openllama-3b-basque"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "xezpeleta/openllama-3b-basque",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/xezpeleta/openllama-3b-basque
How to use xezpeleta/openllama-3b-basque with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "xezpeleta/openllama-3b-basque" \
--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": "xezpeleta/openllama-3b-basque",
"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 "xezpeleta/openllama-3b-basque" \
--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": "xezpeleta/openllama-3b-basque",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use xezpeleta/openllama-3b-basque with Docker Model Runner:
docker model run hf.co/xezpeleta/openllama-3b-basque
This model is a fine-tuned version of openlm-research/open_llama_3b_v2 on the xezpeleta/oasst1_eu_threads dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.4011 | 0.0 | 1 | 3.5208 |
| 2.4173 | 0.25 | 917 | 2.6480 |
| 2.4849 | 0.5 | 1834 | 2.4465 |
| 2.2639 | 0.75 | 2751 | 2.3302 |
| 2.4403 | 1.0 | 3668 | 2.2548 |
| 2.1016 | 1.23 | 4585 | 2.2111 |
| 2.0178 | 1.48 | 5502 | 2.1805 |
| 2.041 | 1.73 | 6419 | 2.1476 |
| 2.0026 | 1.98 | 7336 | 2.1347 |
| 1.7586 | 2.22 | 8253 | 2.1187 |
| 1.8564 | 2.47 | 9170 | 2.1191 |
| 1.766 | 2.72 | 10087 | 2.1147 |
| 2.0431 | 2.97 | 11004 | 2.1157 |
| 2.3418 | 3.2 | 11921 | 2.1147 |
| 1.9713 | 3.45 | 12838 | 2.1151 |
| 1.9072 | 3.7 | 13755 | 2.1151 |
Base model
openlm-research/open_llama_3b_v2