voidful/earica_text_train
Viewer • Updated • 497k • 5
How to use voidful/Qwen3.5-9B-earica with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="voidful/Qwen3.5-9B-earica")
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) # Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("voidful/Qwen3.5-9B-earica")
model = AutoModelForImageTextToText.from_pretrained("voidful/Qwen3.5-9B-earica")
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=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use voidful/Qwen3.5-9B-earica with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "voidful/Qwen3.5-9B-earica"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "voidful/Qwen3.5-9B-earica",
"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 run hf.co/voidful/Qwen3.5-9B-earica
How to use voidful/Qwen3.5-9B-earica with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "voidful/Qwen3.5-9B-earica" \
--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": "voidful/Qwen3.5-9B-earica",
"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 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 "voidful/Qwen3.5-9B-earica" \
--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": "voidful/Qwen3.5-9B-earica",
"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"
}
}
]
}
]
}'How to use voidful/Qwen3.5-9B-earica with Docker Model Runner:
docker model run hf.co/voidful/Qwen3.5-9B-earica
axolotl version: 0.16.0.dev0
# Example config for RCCA-TR A+ (Reliability-Calibrated Conflict-Aware Trust-Region) fine-tuning
# A+ variant: only 1 model in GPU memory (active model)
# Prior = offline cache, EMA = drift buffer
base_model: Qwen/Qwen3.5-9B
plugins:
- axolotl.integrations.rcca_tr.RCCATRPlugin
- axolotl.integrations.liger.LigerPlugin
liger_rms_norm: true
liger_glu_activation: true
# Enable RCCA-TR trainer
rcca_tr_trainer: true
# Conflict score hyperparameters
rcca_tr_conflict_lambda1: 1.0 # weight for surprisal in conflict score
rcca_tr_conflict_lambda2: 0.5 # weight for margin-based conflict
rcca_tr_conflict_tau: 1.0 # temperature for conflict sigmoid
# Reliability score hyperparameters
rcca_tr_reliability_beta: 0.5 # balance between stability and evidence
rcca_tr_reliability_tau: 1.0 # temperature for reliability sigmoid
# Trust-region hyperparameters
rcca_tr_epsilon_min: 0.01 # minimum trust-region radius
rcca_tr_epsilon_max: 1.0 # maximum trust-region radius
rcca_tr_kl_lambda: 1.0 # Lagrange multiplier for KL penalty
rcca_tr_use_smooth_objective: true # smooth g(r_t)*KL vs hinge
# Drift buffer (replaces EMA model)
rcca_tr_ema_decay: 0.999 # decay rate for drift buffer
rcca_tr_drift_gamma: 1.0 # drift → reliability scaling
# Prior cache (optional; omit to use fallback mode)
# rcca_tr_prior_cache_path: ./prior_cache/prior_cache.pt
# Dataset
datasets:
- path: voidful/earica_text_train
type: chat_template
field_messages: conversations
split: train
dataset_prepared_path: ./prepared_data/rcca_tr
chat_template: qwen3_5
# Training settings
sequence_len: 16384
sample_packing: true
pad_to_sequence_len: true
gradient_accumulation_steps: 4
micro_batch_size: 1
num_epochs: 3
optimizer: adamw_torch_fused
lr_scheduler: cosine
learning_rate: 2e-5
bf16: true
gradient_checkpointing: true
flash_attention: true
dataloader_num_workers: 0
deepspeed: deepspeed_configs/zero2.json
val_set_size: 0.05
save_strategy: epoch
output_dir: ./outputs/rcca-tr-fft
hub_model_id: voidful/Qwen3.5-9B-earica
push_to_hub: true
hub_strategy: end
log_on_each_node: false
logging_steps: 1
This model is a fine-tuned version of Qwen/Qwen3.5-9B on the voidful/earica_text_train dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training: