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