Text Generation
Transformers
Safetensors
GGUF
Czech
mpt
llama-cpp
gguf-my-repo
custom_code
text-generation-inference
Instructions to use BUT-FIT/csmpt7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BUT-FIT/csmpt7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BUT-FIT/csmpt7b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BUT-FIT/csmpt7b", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("BUT-FIT/csmpt7b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use BUT-FIT/csmpt7b 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/csmpt7b:BF16 # Run inference directly in the terminal: llama cli -hf BUT-FIT/csmpt7b:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf BUT-FIT/csmpt7b:BF16 # Run inference directly in the terminal: llama cli -hf BUT-FIT/csmpt7b: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/csmpt7b:BF16 # Run inference directly in the terminal: ./llama-cli -hf BUT-FIT/csmpt7b: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/csmpt7b:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf BUT-FIT/csmpt7b:BF16
Use Docker
docker model run hf.co/BUT-FIT/csmpt7b:BF16
- LM Studio
- Jan
- vLLM
How to use BUT-FIT/csmpt7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BUT-FIT/csmpt7b" # 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/csmpt7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BUT-FIT/csmpt7b:BF16
- SGLang
How to use BUT-FIT/csmpt7b 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/csmpt7b" \ --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/csmpt7b", "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/csmpt7b" \ --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/csmpt7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use BUT-FIT/csmpt7b with Ollama:
ollama run hf.co/BUT-FIT/csmpt7b:BF16
- Unsloth Desktop
- Docker Model Runner
How to use BUT-FIT/csmpt7b with Docker Model Runner:
docker model run hf.co/BUT-FIT/csmpt7b:BF16
- Lemonade
How to use BUT-FIT/csmpt7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BUT-FIT/csmpt7b:BF16
Run and chat with the model
lemonade run user.csmpt7b-BF16
List all available models
lemonade list
- Atomic Chat
Commit History
-
Update README.md
Verified signaturedea96b2 -
Upload 2 files
Verified signature401fc64
-
Upload BUT-FIT_csmpt7b-6.7B-Q8_0.gguf
Verified signatured0a366e
-
Upload BUT-FIT_csmpt7b-6.7B-Q8_0.gguf with huggingface_hub
Verified signaturee2ff241 -
Upload BUT-FIT_csmpt7b-6.7B-F32.gguf with huggingface_hub
Verified signaturebdf4839 -
Delete BUT-FIT_csmpt7b-6.7B-F32.gguf
Verified signature20e3b83 -
Upload BUT-FIT_csmpt7b-6.7B-F32.gguf with huggingface_hub
Verified signature65d8386 -
Upload BUT-FIT_csmpt7b-6.7B-BF16.gguf with huggingface_hub
Verified signature4f66e73 -
Delete csmpt-7B-RAGsum-Q8_0.gguf
Verified signature9e7bd39 -
Delete csmpt-7B-RAGsum-F32.gguf
Verified signature89384fd -
Delete csmpt-7B-RAGsum-BF16.gguf
Verified signature02e7167
-
Update README.md
Verified signature8dbc754
-
Upload csmpt-7B-RAGsum-Q8_0.gguf with huggingface_hub
Verified signature2a743e8 -
Upload csmpt-7B-RAGsum-F32.gguf with huggingface_hub
Verified signature40626c5 -
Upload csmpt-7B-RAGsum-BF16.gguf with huggingface_hub
Verified signature400de75
-
Update README.md
Verified signature5c1b8e7 -
Update README.md
Verified signature983aff7 -
Upload csmpt_tllama_test.png
Verified signaturee722c3c -
Update README.md
Verified signature7574425
-
Update tokenizer_config.json
Verified signature17f6699
-
Update modeling_mpt.py
Verified signaturecfa6500
-
Update README.md
Verified signaturea888a41
-
Update README.md
Verified signature538c5ba
-
Update README.md
Verified signaturecbcc91b -
Update README.md
Verified signaturebca95ba
-
Update README.md
Verified signature30a18e1 -
Update README.md
Verified signature38e02a6 -
Update README.md
Verified signaturea3fd6db
-
Fixed broken link for BUT-LCC dataset (#1)
Verified signature- Fixed broken link for BUT-LCC dataset (287769449e66f86faad6a1b26c27365c3d17469b) Co-authored-by: Milan Kryl <mikr@users.noreply.huggingface.co>df4b1ca
-
Update README.md
Verified signature0f34ab5 -
Update README.md
Verified signature88388e8
-
Update README.md
Verified signature33d6aba -
Update README.md
Verified signatureec85dac -
Update README.md
Verified signaturece06b0d -
Upload tllama_test.png
Verified signatureccc5b3a
-
Update README.md
Verified signature637f149 -
Update README.md
Verified signature7531152 -
Update README.md
Verified signature7fc10ae
-
Update README.md
Verified signaturecd223a3 -
Update README.md
Verified signature7c356eb -
Update README.md
Verified signature40c9dd8 -
Update README.md
Verified signaturef77c12f -
Update README.md
Verified signaturebe07e94 -
Update README.md
Verified signature6668b28 -
Update README.md
Verified signature50b0998 -
Update README.md
Verified signaturee6568ef -
Update README.md
Verified signature00cbbb7 -
Update README.md
Verified signature0c26b17 -
Update README.md
Verified signature95785af -
Update README.md
Verified signatureb9588ec