Instructions to use whynlp/tinyllama-lckv-w10-ft-250b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whynlp/tinyllama-lckv-w10-ft-250b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="whynlp/tinyllama-lckv-w10-ft-250b", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("whynlp/tinyllama-lckv-w10-ft-250b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use whynlp/tinyllama-lckv-w10-ft-250b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "whynlp/tinyllama-lckv-w10-ft-250b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "whynlp/tinyllama-lckv-w10-ft-250b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/whynlp/tinyllama-lckv-w10-ft-250b
- SGLang
How to use whynlp/tinyllama-lckv-w10-ft-250b 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 "whynlp/tinyllama-lckv-w10-ft-250b" \ --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": "whynlp/tinyllama-lckv-w10-ft-250b", "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 "whynlp/tinyllama-lckv-w10-ft-250b" \ --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": "whynlp/tinyllama-lckv-w10-ft-250b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use whynlp/tinyllama-lckv-w10-ft-250b with Docker Model Runner:
docker model run hf.co/whynlp/tinyllama-lckv-w10-ft-250b
Download model.safetensors from whynlp/tinyllama-lckv-w10-ft-250b: direct link, hf CLI and curl.
- Browser
- Download file 2.18 GB
-
https://huggingface.co/whynlp/tinyllama-lckv-w10-ft-250b/resolve/main/model.safetensors
- Command line
-
hf download hf://whynlp/tinyllama-lckv-w10-ft-250b/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/whynlp/tinyllama-lckv-w10-ft-250b/resolve/main/model.safetensors
2.18 GB
- Xet hash:
- 716b9a540a44ca761b43a040082397cf1c57d366d4efadcec9d0bd7dc48c5753
- Size of remote file:
- 2.18 GB
- SHA256:
- 6d07eabdbaa1683be0a28d1af9a6495ee3f4201b9d04bd9ab9ac4e831188c9b2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.