Text Generation
Transformers
GGUF
Safetensors
English
llama
conversational
text-generation-inference
Instructions to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-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 pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf pbatra/TinyLlama-1.1B-Chat-v1.0-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 pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf pbatra/TinyLlama-1.1B-Chat-v1.0-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 pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf pbatra/TinyLlama-1.1B-Chat-v1.0-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 pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M
Use Docker
docker model run hf.co/pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M
- SGLang
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF 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 "pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF with Ollama:
ollama run hf.co/pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF with Docker Model Runner:
docker model run hf.co/pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M
- Lemonade
How to use pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pbatra/TinyLlama-1.1B-Chat-v1.0-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.TinyLlama-1.1B-Chat-v1.0-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,18 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# TinyLlama-1.1B-Chat-v1.0
|
| 2 |
|
| 3 |
This repository contains quantized versions of the model from the original repository: [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0).
|
| 4 |
|
| 5 |
-
| Name | Quantization Method | Size (
|
| 6 |
|------|---------------------|-----------|
|
| 7 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 8 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 9 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 10 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 11 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 12 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 13 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 14 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 15 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 16 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 17 |
-
| tinyllama-1.1b-chat-v1.0.
|
| 18 |
-
| tinyllama-1.1b-chat-v1.0.
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- transformers
|
| 7 |
+
- safetensors
|
| 8 |
+
- llama
|
| 9 |
+
- text-generation
|
| 10 |
+
- conversational
|
| 11 |
+
- en
|
| 12 |
+
- dataset:cerebras/SlimPajama-627B
|
| 13 |
+
- dataset:bigcode/starcoderdata
|
| 14 |
+
- dataset:HuggingFaceH4/ultrachat_200k
|
| 15 |
+
- dataset:HuggingFaceH4/ultrafeedback_binarized
|
| 16 |
+
- license:apache-2.0
|
| 17 |
+
- autotrain_compatible
|
| 18 |
+
- endpoints_compatible
|
| 19 |
+
- text-generation-inference
|
| 20 |
+
- region:us
|
| 21 |
+
license: "apache-2.0"
|
| 22 |
+
inference: false
|
| 23 |
+
datasets:
|
| 24 |
+
- cerebras/SlimPajama-627B
|
| 25 |
+
- bigcode/starcoderdata
|
| 26 |
+
- HuggingFaceH4/ultrachat_200k
|
| 27 |
+
- HuggingFaceH4/ultrafeedback_binarized
|
| 28 |
+
quantized_by: pbatra
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
# TinyLlama-1.1B-Chat-v1.0
|
| 32 |
|
| 33 |
This repository contains quantized versions of the model from the original repository: [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0).
|
| 34 |
|
| 35 |
+
| Name | Quantization Method | Size (GB) |
|
| 36 |
|------|---------------------|-----------|
|
| 37 |
+
| tinyllama-1.1b-chat-v1.0.fp16.gguf | FP16 | 2.05 |
|
| 38 |
+
| tinyllama-1.1b-chat-v1.0.fp32.gguf | FP32 | 4.10 |
|
| 39 |
+
| tinyllama-1.1b-chat-v1.0.Q2_K.gguf | q2_k | 0.40 |
|
| 40 |
+
| tinyllama-1.1b-chat-v1.0.Q3_K_S.gguf | q3_k_s | 0.47 |
|
| 41 |
+
| tinyllama-1.1b-chat-v1.0.Q3_K_M.gguf | q3_k_m | 0.51 |
|
| 42 |
+
| tinyllama-1.1b-chat-v1.0.Q3_K_L.gguf | q3_k_l | 0.55 |
|
| 43 |
+
| tinyllama-1.1b-chat-v1.0.Q4_0.gguf | q4_0 | 0.59 |
|
| 44 |
+
| tinyllama-1.1b-chat-v1.0.Q4_K_S.gguf | q4_k_s | 0.60 |
|
| 45 |
+
| tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf | q4_k_m | 0.62 |
|
| 46 |
+
| tinyllama-1.1b-chat-v1.0.Q5_0.gguf | q5_0 | 0.71 |
|
| 47 |
+
| tinyllama-1.1b-chat-v1.0.Q5_K_S.gguf | q5_k_s | 0.71 |
|
| 48 |
+
| tinyllama-1.1b-chat-v1.0.Q5_K_M.gguf | q5_k_m | 0.73 |
|
| 49 |
+
| tinyllama-1.1b-chat-v1.0.Q6_K.gguf | q6_k | 0.84 |
|
| 50 |
+
| tinyllama-1.1b-chat-v1.0.Q8_0.gguf | q8_0 | 1.09 |
|