Instructions to use galaxyMindAiLabs/IoGPT-A1-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use galaxyMindAiLabs/IoGPT-A1-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="galaxyMindAiLabs/IoGPT-A1-Instruct") 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("galaxyMindAiLabs/IoGPT-A1-Instruct") model = AutoModelForImageTextToText.from_pretrained("galaxyMindAiLabs/IoGPT-A1-Instruct") 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 galaxyMindAiLabs/IoGPT-A1-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "galaxyMindAiLabs/IoGPT-A1-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "galaxyMindAiLabs/IoGPT-A1-Instruct", "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/galaxyMindAiLabs/IoGPT-A1-Instruct
- SGLang
How to use galaxyMindAiLabs/IoGPT-A1-Instruct 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 "galaxyMindAiLabs/IoGPT-A1-Instruct" \ --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": "galaxyMindAiLabs/IoGPT-A1-Instruct", "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 "galaxyMindAiLabs/IoGPT-A1-Instruct" \ --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": "galaxyMindAiLabs/IoGPT-A1-Instruct", "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 galaxyMindAiLabs/IoGPT-A1-Instruct with Docker Model Runner:
docker model run hf.co/galaxyMindAiLabs/IoGPT-A1-Instruct
- Model Card for IoGPT-Instruct
- Model Details
- Model Description
- Quick Start
- Training Procedure
This model was trained using Unsloth and TRL (Transformer Reinforcement Learning).
Key Improvements:
* Reasoning: Enhanced logical consistency inherited from the 24B Mistral base.
* Tone: Fine-tuned for a helpful, polite, and precise assistant persona.
* Multilingualism: Improved handling of diverse languages listed above.
Framework Versions
* TRL: 0.24.0
* Transformers: 4.57.6
* Pytorch: 2.10.0
* Datasets: 4.3.0
* Tokenizers: 0.22.2
- Model Details
Model Card for IoGPT-Instruct
IoGPT-Instruct is a fine-tuned generative text model developed by GalaxyMindAiLabs, built upon the powerful Mistral-Small-3.2-24B-Instruct-2506 architecture.
It is designed to handle complex instructions with high reasoning capabilities while maintaining a user-friendly and engaging tone. The model supports multilingual capabilities including Polish, Chinese, Russian, English, Abkhazian, and Korean.
Model Details
- Model Name: IoGPT-Instruct
- Organization: GalaxyMindAiLabs
- Model Type: Text-Image-2-Text
- Base Model: mistralai/Mistral-Small-3.2-24B-Instruct-2506
- License: Apache 2.0
Model Description
This model was trained to improve accuracy in responses requiring precise information, leveraging the strong 24B parameter base of Mistral Small.
Quick Start
Option 1: You can use this model with the Hugging Face transformers library.
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
from accelerate import Accelerator
torch_device = Accelerator().device
model_checkpoint = "galaxyMindAiLabs/IoGPT-A1-Instruct"
processor = AutoProcessor.from_pretrained(model_checkpoint)
model = AutoModelForImageTextToText.from_pretrained(model_checkpoint,torch_dtype=torch.bfloat16, device_map="auto")
user_prompt = "Why sky is blue?"
messages = [
{"role": "user", "content": user_prompt},
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, return_tensors="pt").to(0, dtype=torch.float16)
generate_ids = model.generate(**inputs, max_new_tokens=5000, do_sample=True) # We recommend always setting True to avoid hallucinations.
decoded_output = processor.batch_decode(generate_ids[:, inputs["input_ids"].shape[1] :], skip_special_tokens=True)[0]
print(decoded_output)
Option 2: Using Unsloth (Faster Inference) Since this model was trained with Unsloth, using their library provides 2x faster inference.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "galaxyMindAiLabs/IoGPT-A1-Instruct",
max_seq_length = 2048,
dtype = None,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
inputs = tokenizer(
[
"If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 128, use_cache = True)
print(tokenizer.batch_decode(outputs))
Training Procedure This model was trained using Unsloth and TRL (Transformer Reinforcement Learning). Key Improvements: * Reasoning: Enhanced logical consistency inherited from the 24B Mistral base. * Tone: Fine-tuned for a helpful, polite, and precise assistant persona. * Multilingualism: Improved handling of diverse languages listed above. Framework Versions * TRL: 0.24.0 * Transformers: 4.57.6 * Pytorch: 2.10.0 * Datasets: 4.3.0 * Tokenizers: 0.22.2
Citations
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{[https://github.com/huggingface/trl](https://github.com/huggingface/trl)}}
}
- Downloads last month
- 11
Model tree for galaxyMindAiLabs/IoGPT-A1-Instruct
Base model
mistralai/Mistral-Small-3.1-24B-Base-2503