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
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,31 @@ pipeline_tag: image-text-to-text
|
|
| 11 |
tags:
|
| 12 |
- inkling-2-mini
|
| 13 |
- spanish
|
| 14 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
tags:
|
| 12 |
- inkling-2-mini
|
| 13 |
- spanish
|
| 14 |
+
---
|
| 15 |
+
Barcenas Inkling 2 Mini
|
| 16 |
+
|
| 17 |
+
Basado en el Inkling 2 Mini de Thinking Machines
|
| 18 |
+
|
| 19 |
+
Entranado con el dataset SFT General Spanish 50K
|
| 20 |
+
|
| 21 |
+
Es uno de los modelos mas potentes y grandes que he hecho
|
| 22 |
+
|
| 23 |
+
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)
|
| 24 |
+
|
| 25 |
+
El objetivo es tener un LLM con este tama帽o de 26b y que tenga capacidad loop en espa帽ol de forma nativa
|
| 26 |
+
|
| 27 |
+
---------------------------------------------------
|
| 28 |
+
|
| 29 |
+
Barcenas Inkling 2 Mini
|
| 30 |
+
|
| 31 |
+
Based on the Inkling 2 Mini by Thinking Machines
|
| 32 |
+
|
| 33 |
+
Entered with the SFT General Spanish 50K dataset
|
| 34 |
+
|
| 35 |
+
It is one of the most powerful and largest models that he hecho
|
| 36 |
+
|
| 37 |
+
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)
|
| 38 |
+
|
| 39 |
+
The objective is to have an LLM with this size of 26b and that has loop capacity in Spanish natively
|
| 40 |
+
|
| 41 |
+
Made with 鉂わ笍 in Guadalupe, Nuevo Leon, Mexico 馃嚥馃嚱
|