Image-Text-to-Text
Transformers
Safetensors
English
gemma4
text-generation-inference
unsloth
conversational
Instructions to use Larxel/eios-classifier-lm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Larxel/eios-classifier-lm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Larxel/eios-classifier-lm") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Larxel/eios-classifier-lm") model = AutoModelForMultimodalLM.from_pretrained("Larxel/eios-classifier-lm", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Larxel/eios-classifier-lm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Larxel/eios-classifier-lm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Larxel/eios-classifier-lm", "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/Larxel/eios-classifier-lm
- SGLang
How to use Larxel/eios-classifier-lm 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 "Larxel/eios-classifier-lm" \ --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": "Larxel/eios-classifier-lm", "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 "Larxel/eios-classifier-lm" \ --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": "Larxel/eios-classifier-lm", "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
How to use Larxel/eios-classifier-lm 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 Larxel/eios-classifier-lm 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 Larxel/eios-classifier-lm to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Larxel/eios-classifier-lm to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Larxel/eios-classifier-lm", max_seq_length=2048, ) - Docker Model Runner
How to use Larxel/eios-classifier-lm with Docker Model Runner:
docker model run hf.co/Larxel/eios-classifier-lm
(Trained with Unsloth)
Browse files- config.json +1 -3
- tokenizer.json +2 -2
- tokenizer_config.json +1 -1
config.json
CHANGED
|
@@ -45,7 +45,6 @@
|
|
| 45 |
"audio_token_id": 258881,
|
| 46 |
"boa_token_id": 256000,
|
| 47 |
"boi_token_id": 255999,
|
| 48 |
-
"bos_token_id": 2,
|
| 49 |
"torch_dtype": "bfloat16",
|
| 50 |
"eoa_token_id": 258883,
|
| 51 |
"eoa_token_index": 258883,
|
|
@@ -136,7 +135,7 @@
|
|
| 136 |
"tie_word_embeddings": true,
|
| 137 |
"top_k_experts": null,
|
| 138 |
"use_bidirectional_attention": null,
|
| 139 |
-
"use_cache":
|
| 140 |
"use_double_wide_mlp": true,
|
| 141 |
"vocab_size": 262144,
|
| 142 |
"vocab_size_per_layer_input": 262144
|
|
@@ -144,7 +143,6 @@
|
|
| 144 |
"tie_word_embeddings": true,
|
| 145 |
"unsloth_fixed": true,
|
| 146 |
"unsloth_version": "2026.6.8",
|
| 147 |
-
"use_cache": false,
|
| 148 |
"video_token_id": 258884,
|
| 149 |
"vision_config": {
|
| 150 |
"_name_or_path": "",
|
|
|
|
| 45 |
"audio_token_id": 258881,
|
| 46 |
"boa_token_id": 256000,
|
| 47 |
"boi_token_id": 255999,
|
|
|
|
| 48 |
"torch_dtype": "bfloat16",
|
| 49 |
"eoa_token_id": 258883,
|
| 50 |
"eoa_token_index": 258883,
|
|
|
|
| 135 |
"tie_word_embeddings": true,
|
| 136 |
"top_k_experts": null,
|
| 137 |
"use_bidirectional_attention": null,
|
| 138 |
+
"use_cache": false,
|
| 139 |
"use_double_wide_mlp": true,
|
| 140 |
"vocab_size": 262144,
|
| 141 |
"vocab_size_per_layer_input": 262144
|
|
|
|
| 143 |
"tie_word_embeddings": true,
|
| 144 |
"unsloth_fixed": true,
|
| 145 |
"unsloth_version": "2026.6.8",
|
|
|
|
| 146 |
"video_token_id": 258884,
|
| 147 |
"vision_config": {
|
| 148 |
"_name_or_path": "",
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
|
| 3 |
+
size 32169626
|
tokenizer_config.json
CHANGED
|
@@ -41,7 +41,7 @@
|
|
| 41 |
"think_token": "<|think|>"
|
| 42 |
},
|
| 43 |
"pad_token": "<pad>",
|
| 44 |
-
"padding_side": "
|
| 45 |
"processor_class": "Gemma4Processor",
|
| 46 |
"response_schema": {
|
| 47 |
"properties": {
|
|
|
|
| 41 |
"think_token": "<|think|>"
|
| 42 |
},
|
| 43 |
"pad_token": "<pad>",
|
| 44 |
+
"padding_side": "left",
|
| 45 |
"processor_class": "Gemma4Processor",
|
| 46 |
"response_schema": {
|
| 47 |
"properties": {
|