Text Generation
Transformers
Safetensors
mistral
Generated from Trainer
Eval Results (legacy)
text-generation-inference
Instructions to use nilq/mistral-2L-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nilq/mistral-2L-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nilq/mistral-2L-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nilq/mistral-2L-tiny") model = AutoModelForCausalLM.from_pretrained("nilq/mistral-2L-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nilq/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/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/mistral-2L-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nilq/mistral-2L-tiny
- SGLang
How to use nilq/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/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/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/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/mistral-2L-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nilq/mistral-2L-tiny with Docker Model Runner:
docker model run hf.co/nilq/mistral-2L-tiny
Commit History
-
End of training
Verified signature789e36a -
Model save
Verified signaturebf1abdb -
Model save
Verified signature3549ea5 -
Training in progress, step 90000
Verified signature790011a -
Training in progress, step 85000
Verified signatureef75a61 -
Training in progress, step 80000
Verified signature7521545 -
Training in progress, step 75000
Verified signaturea1ddb9c -
Training in progress, step 70000
Verified signature8085acd -
Training in progress, step 65000
Verified signaturebba5832 -
Training in progress, step 60000
Verified signature3bb7417 -
Training in progress, step 55000
Verified signature2fb4ae9 -
Training in progress, step 50000
Verified signature25611c1 -
Training in progress, step 45000
Verified signatureb29b95a -
Training in progress, step 40000
Verified signatureb21f80d -
Training in progress, step 35000
Verified signatureaddcbba -
Training in progress, step 30000
Verified signaturefbe720b -
Training in progress, step 25000
Verified signaturef21fdb1 -
Training in progress, step 20000
Verified signature6f69a0a -
Training in progress, step 15000
Verified signature1dd453e -
Training in progress, step 10000
Verified signaturef22a4f6 -
Training in progress, step 5000
Verified signatureb6cf8d2
-
End of training
Verified signature672d830 -
Model save
Verified signature07ae162 -
Model save
Verified signatureff732a6 -
Training in progress, step 90000
Verified signature08c21b6 -
Training in progress, step 85000
Verified signature06c2532 -
Training in progress, step 80000
Verified signaturecf90703 -
Training in progress, step 75000
Verified signatureabd71b8 -
Training in progress, step 70000
Verified signature888dcf9 -
Training in progress, step 65000
Verified signatureda93d5a -
Training in progress, step 60000
Verified signatureecc5aaf -
Training in progress, step 55000
Verified signature9c1d04d -
Training in progress, step 50000
Verified signature62922b2 -
Training in progress, step 45000
Verified signature6b955f5 -
Training in progress, step 40000
Verified signature50ce9c9 -
Training in progress, step 35000
Verified signature210218e -
Training in progress, step 30000
Verified signature4a92203 -
Training in progress, step 25000
Verified signature38e80f5 -
Training in progress, step 20000
Verified signature44dfc32 -
Training in progress, step 15000
Verified signatured6a2f87 -
Training in progress, step 10000
Verified signature9262cb1 -
Training in progress, step 5000
Verified signature7a8a4ea -
initial commit
Verified signature1a80758