Text Generation
Transformers
PyTorch
Safetensors
English
i3
conversational
efficient
i3-architecture
Instructions to use i3-lab/i3-22m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use i3-lab/i3-22m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="i3-lab/i3-22m")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("i3-lab/i3-22m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use i3-lab/i3-22m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "i3-lab/i3-22m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "i3-lab/i3-22m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/i3-lab/i3-22m
- SGLang
How to use i3-lab/i3-22m 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-22m" \ --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": "i3-lab/i3-22m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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-22m" \ --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": "i3-lab/i3-22m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use i3-lab/i3-22m with Docker Model Runner:
docker model run hf.co/i3-lab/i3-22m
Commit History
-
Update README.md
Verified signaturea91ff3c -
Update README.md
Verified signature5b7abc0 -
Update README.md
Verified signature6617ea1
-
Update README.md
Verified signaturee1f00db
-
Update README.md
Verified signature1da8cdd -
Update README.md
Verified signature546fc1f -
Update README.md
Verified signatureb1530b4 -
Create user.py
Verified signatureb7599e3 -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (5d356531ef21b73a6f825d1f09600742ad5f5fc9) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5f2f81d -
Update README.md
Verified signaturea1ffe5c -
Update README.md
Verified signaturec05d013 -
Update README.md
Verified signatureaf1304f -
Upload 6 files
Verified signature7e7ec39 -
Update README.md
Verified signaturefdd40a5 -
Update README.md
Verified signatureceda92a
-
initial commit
Verified signatureb558046