Instructions to use i3-lab/i3-4096ctx-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use i3-lab/i3-4096ctx-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="i3-lab/i3-4096ctx-chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("i3-lab/i3-4096ctx-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use i3-lab/i3-4096ctx-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "i3-lab/i3-4096ctx-chat" # 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-4096ctx-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/i3-lab/i3-4096ctx-chat
- SGLang
How to use i3-lab/i3-4096ctx-chat 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-4096ctx-chat" \ --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-4096ctx-chat", "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-4096ctx-chat" \ --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-4096ctx-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use i3-lab/i3-4096ctx-chat with Docker Model Runner:
docker model run hf.co/i3-lab/i3-4096ctx-chat
Download pytorch_model.bin from i3-lab/i3-4096ctx-chat: direct link, hf CLI and curl.
- Browser
- Download file 1.37 GB
-
https://huggingface.co/i3-lab/i3-4096ctx-chat/resolve/refs%2Fpr%2F1/pytorch_model.bin
- Command line
-
hf download hf://i3-lab/i3-4096ctx-chat@refs/pr/1/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/i3-lab/i3-4096ctx-chat/resolve/refs%2Fpr%2F1/pytorch_model.bin
1.37 GB
- Xet hash:
- 6201c403a6e5ac9d285510288aa4a81d2b5f93221c809b1106e59ebe13c1ac7c
- Size of remote file:
- 1.37 GB
- SHA256:
- c80e15b5de785422713557ae4cd724c198f0e2fba5716c65beb2f7d4fab8ada6
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.