Instructions to use i3-lab/i3-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use i3-lab/i3-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="i3-lab/i3-tiny", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import i3 model = i3.from_pretrained("i3-lab/i3-tiny", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use i3-lab/i3-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "i3-lab/i3-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "i3-lab/i3-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/i3-lab/i3-tiny
- SGLang
How to use i3-lab/i3-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 "i3-lab/i3-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": "i3-lab/i3-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 "i3-lab/i3-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": "i3-lab/i3-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use i3-lab/i3-tiny with Docker Model Runner:
docker model run hf.co/i3-lab/i3-tiny
Commit History
-
Update modeling_i3.py
Verified signature7fe5689 -
Update README.md
Verified signature860a775
-
Update README.md
Verified signature2209baa -
Update README.md
Verified signature798dbed -
Update README.md
Verified signature3fd1fa2 -
Update modeling_i3.py
Verified signature9a47333 -
Update config.json
Verified signature4ee20f1 -
Create modeling_i3.py
Verified signature24d2ad5 -
Create config.json
Verified signaturebf66d4f -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (4949d6a52483c9602bd4f5e68384d68b75a5bbb4)7e62110 -
Rename model.bin to pytorch_model.bin
Verified signaturea3306a8 -
Rename i3_model_final.bin to model.bin
Verified signatureea69a85 -
Upload i3_model_final.bin
Verified signature9c4e68c -
Delete model.pt
Verified signaturef0fb962 -
Update README.md
Verified signaturef9723b3 -
Update README.md
Verified signature1b930d8 -
Rename i3_model_final.pt to model.pt
Verified signature8b425f7 -
Upload i3_model_final.pt
Verified signature1912066 -
Update README.md
Verified signature28a74ad -
Update README.md
Verified signatured3bd287
-
initial commit
Verified signature7434a85