Instructions to use AXCXEPT/EZO2.5-gemma-3-12b-it-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXCXEPT/EZO2.5-gemma-3-12b-it-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AXCXEPT/EZO2.5-gemma-3-12b-it-Preview") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("AXCXEPT/EZO2.5-gemma-3-12b-it-Preview") model = AutoModelForMultimodalLM.from_pretrained("AXCXEPT/EZO2.5-gemma-3-12b-it-Preview", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AXCXEPT/EZO2.5-gemma-3-12b-it-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AXCXEPT/EZO2.5-gemma-3-12b-it-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXCXEPT/EZO2.5-gemma-3-12b-it-Preview", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/AXCXEPT/EZO2.5-gemma-3-12b-it-Preview
- SGLang
How to use AXCXEPT/EZO2.5-gemma-3-12b-it-Preview with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AXCXEPT/EZO2.5-gemma-3-12b-it-Preview" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXCXEPT/EZO2.5-gemma-3-12b-it-Preview", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
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 "AXCXEPT/EZO2.5-gemma-3-12b-it-Preview" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXCXEPT/EZO2.5-gemma-3-12b-it-Preview", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use AXCXEPT/EZO2.5-gemma-3-12b-it-Preview with Docker Model Runner:
docker model run hf.co/AXCXEPT/EZO2.5-gemma-3-12b-it-Preview
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("AXCXEPT/EZO2.5-gemma-3-12b-it-Preview")
model = AutoModelForMultimodalLM.from_pretrained("AXCXEPT/EZO2.5-gemma-3-12b-it-Preview", device_map="auto")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))AXCXEPT/EZO2.5-gemma-3-12b-it-Preview
Model Details
ๆจไป็ปๅ ดใใLLM่ช่บซใฎๅใ่ชๅใงๅไธใใใใGRPOใใใPPOใใฎๆฆๅฟตใใ ๅผ็คพใง้็บใใใEZOใใจใใใใฌใผใใณใฐๆๆณใซใใใฏในใใใใจใงใ 3,000ไปถใฎใใผใฟใปใใใ2ๆ้รH200ร8ๅฐใฎใใฌใผใใณใฐใงใJapanese MT BenchใใใณใElyza Tasks100ใซใใใใใผในใขใใซใฎๆฅๆฌ่ชๆง่ฝใๅไธใใใใใจใซๆๅใใใขใใซใงใใ
ๆฌใใฌใผใใณใฐๆๆณใฏใใพใ ็ ็ฉถๆฎต้ใซใใๆๆณใฎ่ชๅๅใใใขใใฌใผใทใงใณใๅฟ ่ฆใชในใใผใฟในใงใฏใใใใฎใฎใ่ค้ใใค้ๅธธใซๆ้ใใใใGRPO/PPOใจใใฃใๅผทๅๅญฆ็ฟๆนๆณใใ ไฝไบ็ฎใงใๅฎ็พใงใใๅคงไฝใฎๆๆฎตใจใชใใใใจ่ใใฆใใพใใ
By integrating the recently introduced concepts of โGRPOโ and โPPOโ โ which enable LLMs to autonomously improve their own capabilities โ into our proprietary training method โEZO,โ we successfully enhanced the Japanese performance of the base model on both Japanese MT Bench and Elyza Tasks100. This was achieved using only 3,000 training samples and two hours of training on 8 H200 GPUs. While this training method is still in the research phase and requires further automation and ablation studies, we believe it represents a viable alternative to complex and time-consuming reinforcement learning approaches like GRPO/PPO โ making it achievable even on a limited budget.
Bench Mark
ใใจใใจ้ๅธธใซ้ซใๆฅๆฌ่ชๆง่ฝใ็คบใใฆใใใgoogle/gemma-3-12b-itใใใ็ญๆ้ใฎใใฌใผใใณใฐใงๆง่ฝๅไธใ้ๆใ 32B, 72Bใฎใขใใซใซใไธ้จ่่ใใใใผในใขใใซใฎๆง่ฝๅไธใซไผดใ็นๅๅใฎๆง่ฝๅไธใๅฎ็พใงใใฆใใใ โปใใ ใใใใณใใใผใฏใใฎใใฎใฎๅคๆงๆงใไปๅพๅฟ ่ฆใจใชใใใใไปๅพใฏใ้ธๆ่ขใฎๅคใ่ฑ่ชใงใฎๅฎๆฝใ่กใใใใฌใผใใณใฐๆๆใฎๅฎ็จๆงๅฎ่จผ็ ็ฉถใ่กใไบๅฎใงใใ
How to use
Runs on a single A40 GPU.
vllm serve AXCXEPT/EZO2.5-gemma-3-12b-it-Preview --max-model-len 32768 --enforce-eager
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8000/v1",
api_key="token-abc123",
)
prompt = """Every morning Aya goes for a $9$-kilometer-long walk and stops at a coffee shop afterwards. When she walks at a constant speed of $s$ kilometers per hour, the walk takes her 4 hours, including $t$ minutes spent in the coffee shop. When she walks $s+2$ kilometers per hour, the walk takes her 2 hours and 24 minutes, including $t$ minutes spent in the coffee shop. Suppose Aya walks at $s+rac{1}{2}$ kilometers per hour. Find the number of minutes the walk takes her, including the $t$ minutes spent in the coffee shop."""
completion = client.chat.completions.create(
model="AXCXEPT/EZO2.5-gemma-3-12b-it-Preview",
messages=[
{"role": "user", "content": prompt}
],
temperature=0.0,
top_p=1.0,
max_tokens: 20480
)
print(completion.choices[0].message)
ใใณใใใผใฏในใณใขใฏใtemperature: 0.0ใtop_p: 1.0ใ"max_tokens": 20480ใงๆจ่ซใใ็ตๆใซๅบใฅใใพใใCons@64ใชใฉใฎใฐใใคใใซใใ่ฉไพกใฏๆชๅฎๆฝใงใใ
License
ใใฎใขใใซใฏ็ ็ฉถใฎใใใซ้็บใใใฆใใพใใๅฉ็จใซ้ใใไธๅใฎๆๅฎณใซ้ขใใฆใๅฝ็คพใชใใณใซ้็บ่ ใฏไธๅๆใใชใใใจใ็่งฃใฎไธใๆดป็จใใ ใใใ Of course. Here's the English translation:
This model has been developed for research purposes. Please use it with the understanding that our company and the developers accept no responsibility for any damages resulting from its use.
Special Thanks
ๆฌใขใใซใฎใใผในใขใใซใฎ้็บใ่กใฃใใGoogle็คพใชใใณใซๅ็คพใฎ้็บใใผใ ใซใๅฐๆฌใจๆฌๆใฎๅฟตใใใใซ่กจใใพใใ We would like to express our sincere respect and appreciation to Google and its development team for creating the base model upon which this model is built.
- Downloads last month
- 35


# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AXCXEPT/EZO2.5-gemma-3-12b-it-Preview") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)