Instructions to use BUT-FIT/CSTinyLLama-1.2B-RAGsum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BUT-FIT/CSTinyLLama-1.2B-RAGsum")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BUT-FIT/CSTinyLLama-1.2B-RAGsum") model = AutoModelForCausalLM.from_pretrained("BUT-FIT/CSTinyLLama-1.2B-RAGsum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum 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 BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16 # Run inference directly in the terminal: llama cli -hf BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16 # Run inference directly in the terminal: llama cli -hf BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
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 BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16 # Run inference directly in the terminal: ./llama-cli -hf BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
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 BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
Use Docker
docker model run hf.co/BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
- LM Studio
- Jan
- vLLM
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BUT-FIT/CSTinyLLama-1.2B-RAGsum" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BUT-FIT/CSTinyLLama-1.2B-RAGsum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
- SGLang
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum 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 "BUT-FIT/CSTinyLLama-1.2B-RAGsum" \ --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": "BUT-FIT/CSTinyLLama-1.2B-RAGsum", "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 "BUT-FIT/CSTinyLLama-1.2B-RAGsum" \ --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": "BUT-FIT/CSTinyLLama-1.2B-RAGsum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum with Ollama:
ollama run hf.co/BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
- Unsloth Desktop
- Docker Model Runner
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum with Docker Model Runner:
docker model run hf.co/BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
- Lemonade
How to use BUT-FIT/CSTinyLLama-1.2B-RAGsum with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BUT-FIT/CSTinyLLama-1.2B-RAGsum:BF16
Run and chat with the model
lemonade run user.CSTinyLLama-1.2B-RAGsum-BF16
List all available models
lemonade list
- Atomic Chat
Upload CSTinyLlama-1.2B-RAGsum-BF16.gguf with huggingface_hub
Browse files- .gitattributes +1 -0
- CSTinyLlama-1.2B-RAGsum-BF16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
CSTinyLlama-1.2B-RAGsum-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
CSTinyLlama-1.2B-RAGsum-F32.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
CSTinyLlama-1.2B-RAGsum-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
CSTinyLlama-1.2B-RAGsum-F32.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
CSTinyLlama-1.2B-RAGsum-BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
CSTinyLlama-1.2B-RAGsum-BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f68f0f9cfc88ab5dd1c06b26d361546aa2aa80599e3a23ed96c90c3f9f885724
|
| 3 |
+
size 2465055968
|