Text Generation
Transformers
PyTorch
Safetensors
English
i3
conversational
efficient
i3-architecture
custom_code
Instructions to use i3-lab/i3-12m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use i3-lab/i3-12m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="i3-lab/i3-12m", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("i3-lab/i3-12m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use i3-lab/i3-12m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "i3-lab/i3-12m" # 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-12m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/i3-lab/i3-12m
- SGLang
How to use i3-lab/i3-12m 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-12m" \ --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-12m", "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-12m" \ --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-12m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use i3-lab/i3-12m with Docker Model Runner:
docker model run hf.co/i3-lab/i3-12m
Commit History
-
Update config.json
Verified signaturecd5b4c0 -
Update config.json
Verified signatureb3aa53d -
Update modeling_i3.py
Verified signaturebb3c416 -
Update __init__.py
Verified signature0b018af -
Update config.json
Verified signaturee348631 -
Update modeling_i3.py
Verified signature23b35bc -
Update configuration_i3.py
Verified signature2c1f948 -
Create __init__.py
Verified signature33e68fe -
Update modeling_i3.py
Verified signaturef1c8a9a -
Delete auto_register_i3.py
Verified signature59c0fc4 -
Create auto_register_i3.py
Verified signature5f475d7 -
Update modeling_i3.py
Verified signaturec37c642 -
Update configuration_i3.py
Verified signaturefc443ff -
Update configuration_i3.py
Verified signature5281b0b -
Update modeling_i3.py
Verified signature6015b0a
-
Update README.md
Verified signature36f2293 -
Update README.md
Verified signaturefcc7cde
-
Update README.md
Verified signature4a6cec0 -
Update README.md
Verified signature88ceb2c -
Update README.md
Verified signature56933b3 -
Update README.md
Verified signature0fc4e8f -
Create tokenization_i3.py
Verified signatured655584 -
Create modeling_i3.py
Verified signature72510fa -
Create configuration_i3.py
Verified signature1b4b2d0 -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (95bf157d408870f3d3cbdca7e3a9ca69cd29bc53)c0de99b -
Update README.md
Verified signature970504a -
Update README.md
Verified signaturef247597 -
Update README.md
Verified signature5b2d721 -
Upload folder using huggingface_hub
Verified signature4b4bf05 -
initial commit
Verified signature1ffb486