Instructions to use nilq/lua-mistral-2L-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nilq/lua-mistral-2L-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nilq/lua-mistral-2L-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nilq/lua-mistral-2L-tiny") model = AutoModelForCausalLM.from_pretrained("nilq/lua-mistral-2L-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nilq/lua-mistral-2L-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nilq/lua-mistral-2L-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nilq/lua-mistral-2L-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nilq/lua-mistral-2L-tiny
- SGLang
How to use nilq/lua-mistral-2L-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 "nilq/lua-mistral-2L-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": "nilq/lua-mistral-2L-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 "nilq/lua-mistral-2L-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": "nilq/lua-mistral-2L-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nilq/lua-mistral-2L-tiny with Docker Model Runner:
docker model run hf.co/nilq/lua-mistral-2L-tiny
Commit History
-
End of training
Verified signatureaa78edc -
Model save
Verified signature5cf0bd7 -
Model save
Verified signature3d14a00 -
Training in progress, step 230000
Verified signatureaa8c118 -
Training in progress, step 225000
Verified signature913c524 -
Training in progress, step 220000
Verified signature723aaec -
Training in progress, step 215000
Verified signaturee9eea24 -
Training in progress, step 210000
Verified signaturebe05bc7 -
Training in progress, step 205000
Verified signature8c755ed -
Training in progress, step 200000
Verified signatureca1b2da -
Training in progress, step 195000
Verified signature938f62b -
Training in progress, step 190000
Verified signature92f2605 -
Training in progress, step 185000
Verified signature40e30d4 -
Training in progress, step 180000
Verified signature9b32be6 -
Training in progress, step 175000
Verified signature54faac1 -
Training in progress, step 170000
Verified signatureeebbf09 -
Training in progress, step 165000
Verified signaturecdb240f -
Training in progress, step 160000
Verified signature1897774 -
Training in progress, step 155000
Verified signaturecd13a38 -
Training in progress, step 150000
Verified signature2d85f5a -
Training in progress, step 145000
Verified signature2b597da -
Training in progress, step 140000
Verified signature7594fcb -
Training in progress, step 135000
Verified signature69c678d -
Training in progress, step 130000
Verified signature139a667 -
Training in progress, step 125000
Verified signaturede310c3 -
Training in progress, step 120000
Verified signature5a998fb -
Training in progress, step 115000
Verified signature50806af -
Training in progress, step 110000
Verified signaturea2c5eca -
Training in progress, step 105000
Verified signaturef50849c -
Training in progress, step 100000
Verified signatured38a2e0 -
Training in progress, step 95000
Verified signature39de627 -
Training in progress, step 90000
Verified signature3362817 -
Training in progress, step 85000
Verified signature0a43f71 -
Training in progress, step 80000
Verified signature8314426 -
Training in progress, step 75000
Verified signature048ee73 -
Training in progress, step 70000
Verified signature6c441d1 -
Training in progress, step 65000
Verified signaturee850d6e -
Training in progress, step 60000
Verified signature8157bf4 -
Training in progress, step 55000
Verified signature7cb11fd -
Training in progress, step 50000
Verified signaturedbc31d8 -
Training in progress, step 45000
Verified signature331d8a5 -
Training in progress, step 40000
Verified signatured920ec9 -
Training in progress, step 35000
Verified signature6459086 -
Training in progress, step 30000
Verified signatureeb06cde -
Training in progress, step 25000
Verified signature2fd8dfc -
Training in progress, step 20000
Verified signature26ae194 -
Training in progress, step 15000
Verified signature7dba900 -
Training in progress, step 10000
Verified signature6e4cf1e -
Training in progress, step 5000
Verified signature0a3635b -
initial commit
Verified signature30beb22