Instructions to use afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF 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 afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF 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 afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
Use Docker
docker model run hf.co/afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
- Ollama
How to use afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF with Ollama:
ollama run hf.co/afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF with Docker Model Runner:
docker model run hf.co/afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
- Lemonade
How to use afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.TinyLlama-1.1B-alpaca-chat-v1.5-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
tog/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF
Quantized GGUF model files for TinyLlama-1.1B-alpaca-chat-v1.5 from tog
| Name | Quant method | Size |
|---|---|---|
| tinyllama-1.1b-alpaca-chat-v1.5.q2_k.gguf | q2_k | 482.14 MB |
| tinyllama-1.1b-alpaca-chat-v1.5.q3_k_m.gguf | q3_k_m | 549.85 MB |
| tinyllama-1.1b-alpaca-chat-v1.5.q4_k_m.gguf | q4_k_m | 667.81 MB |
| tinyllama-1.1b-alpaca-chat-v1.5.q5_k_m.gguf | q5_k_m | 782.04 MB |
| tinyllama-1.1b-alpaca-chat-v1.5.q6_k.gguf | q6_k | 903.41 MB |
| tinyllama-1.1b-alpaca-chat-v1.5.q8_0.gguf | q8_0 | 1.17 GB |
Original Model Card:
This Model
This is the chat model finetuned on top of PY007/TinyLlama-1.1B-intermediate-step-715k-1.5T. The dataset used is tatsu-lab/stanford_alpaca.
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:
You can use it with the transformers library:
from transformers import AutoTokenizer
import transformers
import torch
model = "tog/TinyLlama-1.1B-alpaca-chat-v1.5"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto")
sequences = pipeline(
'###Instruction:\nWhat is a large language model? Be concise.\n\n### Response:\n',
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
max_length=200)
for seq in sequences:
print(f"{seq['generated_text']}")
You should get something along those lines:
Setting `pad_token_id` to `eos_token_id`:2 for open-end generation.
Result: ###Instruction:
What is a large language model? Be concise.
### Response:
A large language model is a type of natural language understanding model that can learn to accurately recognize and interpret text data by understanding the context of words. Languages used for text understanding are typically trained on a corpus of text data.
- Downloads last month
- 119
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for afrideva/TinyLlama-1.1B-alpaca-chat-v1.5-GGUF
Base model
tog/TinyLlama-1.1B-alpaca-chat-v1.5