Image-Text-to-Text
Transformers
Safetensors
Mobilint
mobilint-d1
feature-extraction
custom_code
npu
decision
system-one
liquid
Instructions to use mobilint/d1-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mobilint/d1-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="mobilint/d1-3B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mobilint/d1-3B", trust_remote_code=True, device_map="auto") - Mobilint
How to use mobilint/d1-3B with Mobilint:
# pip install mblt-model-zoo from mblt_model_zoo.vision import MBLT_Engine model = MBLT_Engine( model_cls="d1-3B", model_type="DEFAULT", model_path="", core_mode="global8", ) try: image = model.preprocess("path/to/image.jpg") output = model(image) result = model.postprocess(output) finally: model.dispose() - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mobilint/d1-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mobilint/d1-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mobilint/d1-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mobilint/d1-3B
- SGLang
How to use mobilint/d1-3B 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 "mobilint/d1-3B" \ --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": "mobilint/d1-3B", "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 "mobilint/d1-3B" \ --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": "mobilint/d1-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mobilint/d1-3B with Docker Model Runner:
docker model run hf.co/mobilint/d1-3B
Download tokenizer.json from mobilint/d1-3B: direct link, hf CLI and curl.
- Browser
- Download file 17.9 MB
-
https://huggingface.co/mobilint/d1-3B/resolve/main/tokenizer.json
- Command line
-
hf download hf://mobilint/d1-3B/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/mobilint/d1-3B/resolve/main/tokenizer.json
17.9 MB
- Xet hash:
- f598d654bb37d1d744a8899d3523440c11cd430a530145af8475bb11781f9e4e
- Size of remote file:
- 17.9 MB
- SHA256:
- 8096ecb9f54599d756c8de728a598a340bc1e43c0deb77ddd62456c38349fcee
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.