Image-Text-to-Text
Transformers
Safetensors
English
qwen3_vl
text-generation-inference
unsloth
trl
conversational
4-bit precision
bitsandbytes
Instructions to use currentfear/devoluciones_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use currentfear/devoluciones_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="currentfear/devoluciones_v2") 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("currentfear/devoluciones_v2") model = AutoModelForImageTextToText.from_pretrained("currentfear/devoluciones_v2") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use currentfear/devoluciones_v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "currentfear/devoluciones_v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "currentfear/devoluciones_v2", "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/currentfear/devoluciones_v2
- SGLang
How to use currentfear/devoluciones_v2 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 "currentfear/devoluciones_v2" \ --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": "currentfear/devoluciones_v2", "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 "currentfear/devoluciones_v2" \ --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": "currentfear/devoluciones_v2", "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" } } ] } ] }' - Unsloth Studio new
How to use currentfear/devoluciones_v2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for currentfear/devoluciones_v2 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for currentfear/devoluciones_v2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for currentfear/devoluciones_v2 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="currentfear/devoluciones_v2", max_seq_length=2048, ) - Docker Model Runner
How to use currentfear/devoluciones_v2 with Docker Model Runner:
docker model run hf.co/currentfear/devoluciones_v2
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- config.json +80 -0
- generation_config.json +13 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
config.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3VLForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"eos_token_id": 151645,
|
| 7 |
+
"image_token_id": 151655,
|
| 8 |
+
"model_type": "qwen3_vl",
|
| 9 |
+
"pad_token_id": 151654,
|
| 10 |
+
"quantization_config": {
|
| 11 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 12 |
+
"bnb_4bit_quant_type": "nf4",
|
| 13 |
+
"bnb_4bit_use_double_quant": true,
|
| 14 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 15 |
+
"llm_int8_has_fp16_weight": false,
|
| 16 |
+
"llm_int8_skip_modules": null,
|
| 17 |
+
"llm_int8_threshold": 6.0,
|
| 18 |
+
"load_in_4bit": true,
|
| 19 |
+
"load_in_8bit": false,
|
| 20 |
+
"quant_method": "bitsandbytes"
|
| 21 |
+
},
|
| 22 |
+
"text_config": {
|
| 23 |
+
"attention_bias": false,
|
| 24 |
+
"attention_dropout": 0.0,
|
| 25 |
+
"bos_token_id": 151643,
|
| 26 |
+
"dtype": "bfloat16",
|
| 27 |
+
"eos_token_id": 151645,
|
| 28 |
+
"head_dim": 128,
|
| 29 |
+
"hidden_act": "silu",
|
| 30 |
+
"hidden_size": 4096,
|
| 31 |
+
"initializer_range": 0.02,
|
| 32 |
+
"intermediate_size": 12288,
|
| 33 |
+
"max_position_embeddings": 262144,
|
| 34 |
+
"model_type": "qwen3_vl_text",
|
| 35 |
+
"num_attention_heads": 32,
|
| 36 |
+
"num_hidden_layers": 36,
|
| 37 |
+
"num_key_value_heads": 8,
|
| 38 |
+
"rms_norm_eps": 1e-06,
|
| 39 |
+
"rope_scaling": {
|
| 40 |
+
"mrope_interleaved": true,
|
| 41 |
+
"mrope_section": [
|
| 42 |
+
24,
|
| 43 |
+
20,
|
| 44 |
+
20
|
| 45 |
+
],
|
| 46 |
+
"rope_type": "default"
|
| 47 |
+
},
|
| 48 |
+
"rope_theta": 5000000,
|
| 49 |
+
"use_cache": true,
|
| 50 |
+
"vocab_size": 151936
|
| 51 |
+
},
|
| 52 |
+
"tie_word_embeddings": false,
|
| 53 |
+
"transformers_version": "4.57.1",
|
| 54 |
+
"unsloth_fixed": true,
|
| 55 |
+
"unsloth_version": "2026.2.1",
|
| 56 |
+
"video_token_id": 151656,
|
| 57 |
+
"vision_config": {
|
| 58 |
+
"deepstack_visual_indexes": [
|
| 59 |
+
8,
|
| 60 |
+
16,
|
| 61 |
+
24
|
| 62 |
+
],
|
| 63 |
+
"depth": 27,
|
| 64 |
+
"dtype": "bfloat16",
|
| 65 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 66 |
+
"hidden_size": 1152,
|
| 67 |
+
"in_channels": 3,
|
| 68 |
+
"initializer_range": 0.02,
|
| 69 |
+
"intermediate_size": 4304,
|
| 70 |
+
"model_type": "qwen3_vl",
|
| 71 |
+
"num_heads": 16,
|
| 72 |
+
"num_position_embeddings": 2304,
|
| 73 |
+
"out_hidden_size": 4096,
|
| 74 |
+
"patch_size": 16,
|
| 75 |
+
"spatial_merge_size": 2,
|
| 76 |
+
"temporal_patch_size": 2
|
| 77 |
+
},
|
| 78 |
+
"vision_end_token_id": 151653,
|
| 79 |
+
"vision_start_token_id": 151652
|
| 80 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151654,
|
| 9 |
+
"temperature": 0.7,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.8,
|
| 12 |
+
"transformers_version": "4.57.1"
|
| 13 |
+
}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ef667bbaa70868d542ad0e59b06e97080d4a4cdec90077b9ef93b91495aa922
|
| 3 |
+
size 4984017723
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b52c4abb541b7ab5579948e104a2d387b1da4533b4df8cfba5d5d94975ee3697
|
| 3 |
+
size 2715459991
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|