Image-Text-to-Text
Transformers
Safetensors
Spanish
inkling2_loop
inkling-2-mini
spanish
conversational
Instructions to use Danielbrdz/Barcenas-Inkling-2-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Danielbrdz/Barcenas-Inkling-2-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Danielbrdz/Barcenas-Inkling-2-Mini") 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("Danielbrdz/Barcenas-Inkling-2-Mini") model = AutoModelForMultimodalLM.from_pretrained("Danielbrdz/Barcenas-Inkling-2-Mini", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Danielbrdz/Barcenas-Inkling-2-Mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Danielbrdz/Barcenas-Inkling-2-Mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Danielbrdz/Barcenas-Inkling-2-Mini", "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/Danielbrdz/Barcenas-Inkling-2-Mini
- SGLang
How to use Danielbrdz/Barcenas-Inkling-2-Mini 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 "Danielbrdz/Barcenas-Inkling-2-Mini" \ --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": "Danielbrdz/Barcenas-Inkling-2-Mini", "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 "Danielbrdz/Barcenas-Inkling-2-Mini" \ --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": "Danielbrdz/Barcenas-Inkling-2-Mini", "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 Danielbrdz/Barcenas-Inkling-2-Mini with Docker Model Runner:
docker model run hf.co/Danielbrdz/Barcenas-Inkling-2-Mini
File size: 1,316 Bytes
fd9fc4d 66fb128 fd9fc4d fbae91a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ---
base_model:
- thinkingmachines/Inkling-2-Mini
datasets:
- OysterCoreAI/SFT-General-Spanish-50K
language:
- es
license: apache-2.0
library_name: transformers
pipeline_tag: image-text-to-text
tags:
- inkling-2-mini
- spanish
---
Barcenas Inkling 2 Mini
Basado en el Inkling 2 Mini de Thinking Machines
Entranado con el dataset SFT General Spanish 50K
Es uno de los modelos mas potentes y grandes que he hecho
Mi primer modelo en tener la opción loop (se refiere a repetir procesos de forma iterativa para que un modelo o agente ejecute acciones, evalúe resultados y mejore respuestas hasta cumplir un objetivo)
El objetivo es tener un LLM con este tamaño de 26b y que tenga capacidad loop en español de forma nativa
---------------------------------------------------
Barcenas Inkling 2 Mini
Based on the Inkling 2 Mini by Thinking Machines
Entered with the SFT General Spanish 50K dataset
It is one of the most powerful and largest models that he hecho
My first model has the loop option (refers to repeating processes iteratively so that a model or agent takes actions, evaluates results and improves responses to achieve an objective)
The objective is to have an LLM with this size of 26b and that has loop capacity in Spanish natively
Made with ❤️ in Guadalupe, Nuevo Leon, Mexico 🇲🇽 |