Instructions to use TLNKhanh/tinystories-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TLNKhanh/tinystories-instruct with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf TLNKhanh/tinystories-instruct:F16 # Run inference directly in the terminal: llama cli -hf TLNKhanh/tinystories-instruct:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf TLNKhanh/tinystories-instruct:F16 # Run inference directly in the terminal: llama cli -hf TLNKhanh/tinystories-instruct:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf TLNKhanh/tinystories-instruct:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf TLNKhanh/tinystories-instruct:F16
Use Docker
docker model run hf.co/TLNKhanh/tinystories-instruct:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use TLNKhanh/tinystories-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TLNKhanh/tinystories-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TLNKhanh/tinystories-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TLNKhanh/tinystories-instruct:F16
- Ollama
How to use TLNKhanh/tinystories-instruct with Ollama:
ollama run hf.co/TLNKhanh/tinystories-instruct:F16
- Unsloth Desktop
- Docker Model Runner
How to use TLNKhanh/tinystories-instruct with Docker Model Runner:
docker model run hf.co/TLNKhanh/tinystories-instruct:F16
- Lemonade
How to use TLNKhanh/tinystories-instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TLNKhanh/tinystories-instruct:F16
Run and chat with the model
lemonade run user.tinystories-instruct-F16
List all available models
lemonade list
- Atomic Chat
Download Modelfile from TLNKhanh/tinystories-instruct: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/TLNKhanh/tinystories-instruct/resolve/main/Modelfile
- Command line
-
hf download hf://TLNKhanh/tinystories-instruct/Modelfile
-
curl -L -o Modelfile https://huggingface.co/TLNKhanh/tinystories-instruct/resolve/main/Modelfile
227 Bytes
| FROM /home/khanh/gpu-lab/tinystories/tinystories-instruct-f16.gguf | |
| TEMPLATE """### Instruction: | |
| {{ .Prompt }} | |
| ### Response: | |
| """ | |
| PARAMETER temperature 0.7 | |
| PARAMETER top_k 40 | |
| PARAMETER num_ctx 256 | |
| PARAMETER stop "<|endoftext|>" | |