AlexHung29629/test_data_123
Viewer • Updated • 20 • 12
How to use AlexHung29629/dfjbvheriuer with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="AlexHung29629/dfjbvheriuer")
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("AlexHung29629/dfjbvheriuer")
model = AutoModelForImageTextToText.from_pretrained("AlexHung29629/dfjbvheriuer")
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 AlexHung29629/dfjbvheriuer with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "AlexHung29629/dfjbvheriuer"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AlexHung29629/dfjbvheriuer",
"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/AlexHung29629/dfjbvheriuer
How to use AlexHung29629/dfjbvheriuer with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "AlexHung29629/dfjbvheriuer" \
--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": "AlexHung29629/dfjbvheriuer",
"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 "AlexHung29629/dfjbvheriuer" \
--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": "AlexHung29629/dfjbvheriuer",
"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 AlexHung29629/dfjbvheriuer with Docker Model Runner:
docker model run hf.co/AlexHung29629/dfjbvheriuer
axolotl version: 0.16.0.dev0
base_model: mistralai/Ministral-3-3B-Instruct-2512-BF16
# Enable to use mistral-common tokenizer
tokenizer_use_mistral_common: false
# Automatically upload checkpoint and final model to HF
# hub_model_id: username/custom_model_name
plugins:
- axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
datasets:
- path: AlexHung29629/test_data_123
type:
system_prompt: ""
field_system: system
field_instruction: input
field_output: output
format: "{instruction}"
no_input_format: "{instruction}"
unfrozen_parameters:
- ^model.language_model.norm.weight$
- ^model.language_model.layers.2[0-5].[.a-z_]+$
#model.language_model.layers.25.post_attention_layernorm.weight
dataset_prepared_path: last_run_prepared
val_set_size: 0.0
output_dir: ./outputs/out
dataloader_num_workers: 0
sequence_len: 32768
sample_packing: true
gradient_accumulation_steps: 1
micro_batch_size: 1
num_epochs: 2
optimizer: adamw_bnb_8bit
lr_scheduler: constant
max_grad_norm: 1.0
learning_rate: 2e-5
bf16: auto
tf32: false
gradient_checkpointing: true
resume_from_checkpoint:
logging_steps: 1
#flash_attention: true
flex_attention: true
scaling_softmax: true
warmup_ratio: 0.0
evals_per_epoch: 1
saves_per_epoch: 1
# save_first_step: true # uncomment this to validate checkpoint saving works with your config
This model is a fine-tuned version of mistralai/Ministral-3-3B-Instruct-2512-BF16 on the AlexHung29629/test_data_123 dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
mistralai/Ministral-3-3B-Base-2512