Helsinki-NLP/opus-100
Viewer • Updated • 55.1M • 30.5k • 235
How to use Cathaltwo/gemma3_bilingual_cpt_fast with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Cathaltwo/gemma3_bilingual_cpt_fast") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Cathaltwo/gemma3_bilingual_cpt_fast")
model = AutoModelForCausalLM.from_pretrained("Cathaltwo/gemma3_bilingual_cpt_fast")How to use Cathaltwo/gemma3_bilingual_cpt_fast with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Cathaltwo/gemma3_bilingual_cpt_fast"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Cathaltwo/gemma3_bilingual_cpt_fast",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Cathaltwo/gemma3_bilingual_cpt_fast
How to use Cathaltwo/gemma3_bilingual_cpt_fast with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Cathaltwo/gemma3_bilingual_cpt_fast" \
--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": "Cathaltwo/gemma3_bilingual_cpt_fast",
"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 "Cathaltwo/gemma3_bilingual_cpt_fast" \
--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": "Cathaltwo/gemma3_bilingual_cpt_fast",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Cathaltwo/gemma3_bilingual_cpt_fast with Docker Model Runner:
docker model run hf.co/Cathaltwo/gemma3_bilingual_cpt_fast
This model was trained from scratch on the None dataset. It achieves the following results on the evaluation set:
Simple Continued pretraining of gemma-3-270m for Irish (80%) and English (20%) as a test for generating better Irish understanding. Heavily influenced by the work done by reliableai
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Model Preparation Time |
|---|---|---|---|---|
| 3.8479 | 0.1414 | 400 | 3.7987 | 0.0337 |
| 3.6146 | 0.2828 | 800 | 3.5188 | 0.0337 |
| 3.3704 | 0.4242 | 1200 | 3.3405 | 0.0337 |
| 3.2304 | 0.5655 | 1600 | 3.2068 | 0.0337 |
| 3.1446 | 0.7069 | 2000 | 3.1178 | 0.0337 |
Base model
google/gemma-3-270m