Instructions to use hf-internal-testing/MiniMax-VL-01-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/MiniMax-VL-01-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="hf-internal-testing/MiniMax-VL-01-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("hf-internal-testing/MiniMax-VL-01-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hf-internal-testing/MiniMax-VL-01-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hf-internal-testing/MiniMax-VL-01-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hf-internal-testing/MiniMax-VL-01-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hf-internal-testing/MiniMax-VL-01-tiny
- SGLang
How to use hf-internal-testing/MiniMax-VL-01-tiny 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 "hf-internal-testing/MiniMax-VL-01-tiny" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hf-internal-testing/MiniMax-VL-01-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "hf-internal-testing/MiniMax-VL-01-tiny" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hf-internal-testing/MiniMax-VL-01-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hf-internal-testing/MiniMax-VL-01-tiny with Docker Model Runner:
docker model run hf.co/hf-internal-testing/MiniMax-VL-01-tiny
Tiny MiniMax-VL-01 test checkpoint
Randomly initialized fixture exported from MiniMaxVL01IntegrationTest._dummy_model() in
Transformers PR #47776,
source revision 6ff8403cbe36b2b4643597f9e36611ebdc9eff62.
It is intended for regression tests and is not trained for useful image understanding or text generation.
The fixture uses seed 0 and float32 weights, with 103,072 parameters. Its text model has eight layers (seven linear-attention layers followed by one full-attention layer), hidden size 32, four local experts, and vocabulary size 97. The CLIP vision encoder has two layers, hidden size 16, image size 8, and patch size 4. The image token ID is 3.
Loading
Use the Transformers checkout from PR #47776, which provides the native model classes and checkpoint mappings.
import torch
from transformers import AutoModelForImageTextToText
model = AutoModelForImageTextToText.from_pretrained(
"/path/to/MiniMax-VL-01-tiny-for-review",
dtype=torch.float32,
attn_implementation="eager",
)
The existing slow integration tests provide integer token IDs and a small native image processor. No tokenizer or combined processor is included: the released tokenizer's vocabulary and image-token ID are incompatible with this tiny fixture.
Files: config.json, generation_config.json, and model.safetensors, plus this model card.
- Downloads last month
- 1