Instructions to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF", filename="minitron-Bielik-7B-v3.0-Instruct-GGUF.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf speakleash/Bielik-Minitron-7B-v3.0-Instruct-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 speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf speakleash/Bielik-Minitron-7B-v3.0-Instruct-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 speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "speakleash/Bielik-Minitron-7B-v3.0-Instruct-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": "speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
- SGLang
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-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 "speakleash/Bielik-Minitron-7B-v3.0-Instruct-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": "speakleash/Bielik-Minitron-7B-v3.0-Instruct-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 "speakleash/Bielik-Minitron-7B-v3.0-Instruct-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": "speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with Ollama:
ollama run hf.co/speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
- Unsloth Studio new
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF to start chatting
- Docker Model Runner
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
- Lemonade
How to use speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Bielik-Minitron-7B-v3.0-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)
Bielik-11B-v3.0-Instruct-GGUF
This repo contains GGUF format model files for SpeakLeash's Bielik-Minitron-7B-v3.0-Instruct.
DISCLAIMER: Be aware that quantised models show reduced response quality and possible hallucinations!
Available quantization formats:
- q4_k_m: Uses Q6_K for half of the attention.wv and feed_forward.w2 tensors, else Q4_K
- q5_k_m: Uses Q6_K for half of the attention.wv and feed_forward.w2 tensors, else Q5_K
- q6_k: Uses Q8_K for all tensors
- q8_0: Almost indistinguishable from float16. High resource use and slow. Not recommended for most users.
- 16bit: Converted to FP16 and BF16 GGUF format.
Ollama Modfile
The GGUF file can be used with Ollama. To do this, you need to import the model using the configuration defined in the Modfile. For model eg. Bielik-Minitron-7B-v3.0-Instruct.Q4_K_M.gguf (full path to model location) Modfile looks like:
FROM ./Bielik-Minitron-7B-v3.0-Instruct.Q4_K_M.gguf
TEMPLATE """<s>{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>"""
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
# Remeber to set low temperature for experimental models (1-3bits)
PARAMETER temperature 0.1
Ollama Modfile with tools:
FROM ./Bielik-Minitron-7B-v3.0-Instruct.Q8_0.gguf
TEMPLATE """{{- /* SYSTEM + TOOLS INJECTION */ -}}
{{- if or .System .Tools -}}
<|im_start|>system
{{- if .System }}
{{ .System }}
{{- end }}
{{- if .Tools }}
You are provided with tool signatures that you can use to assist with the user's query.
You do not have to use a tool if you can respond adequately without it.
Do not make assumptions about tool arguments. If required parameters are missing, ask a clarification question.
If you decide to invoke a tool, you MUST respond with ONLY valid JSON in the following format:
{"name":"<tool-name>","arguments":{...}}
Below is a list of tools you can invoke (JSON):
{{ .Tools }}
{{- end }}
<|im_end|>
{{- end }}
{{- /* MESSAGES */ -}}
{{- range $i, $_ := .Messages }}
<|im_start|>{{ .Role }}
{{ .Content }}<|im_end|>
{{- end }}
{{- /* GENERATION PROMPT */ -}}
<|im_start|>assistant"""
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|eot_id|>"
PARAMETER temperature 0.1
Model description:
- Developed by: SpeakLeash & ACK Cyfronet AGH
- Language: Multilingual (32 European languages, optimized for Polish)
- Model type: causal decoder-only
- Quant from: Bielik-Minitron-7B-v3.0-Instruct
- Finetuned from: speakleash/Bielik-Minitron-7B-v3.0
- License: Apache 2.0
About GGUF
GGUF is a new format introduced by the llama.cpp team on August 21st 2023.
Here is an incomplete list of clients and libraries that are known to support GGUF:
- llama.cpp. The source project for GGUF. Offers a CLI and a server option.
- text-generation-webui, the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
- KoboldCpp, a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
- GPT4All, a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
- LM Studio, an easy-to-use and powerful local GUI for Windows, macOS (Silicon) and Linux, with GPU acceleration
- LoLLMS Web UI, a great web UI with many interesting and unique features, including a full model library for easy model selection.
- Faraday.dev, an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
- llama-cpp-python, a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
- candle, a Rust ML framework with a focus on performance, including GPU support, and ease of use.
- ctransformers, a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note ctransformers has not been updated in a long time and does not support many recent models.
Responsible for model quantization
- Remigiusz KinasSpeakLeash - team leadership, conceptualizing, calibration data preparation, process creation and quantized model delivery.
- Kuba SołtysSpeakLeash - prepared a template with tools for Ollama
- Szymon BaczyńskiSpeakLeash - team assistant
Contact Us
If you have any questions or suggestions, please use the discussion tab. If you want to contact us directly, join our Discord SpeakLeash.
- Downloads last month
- 1,200
4-bit
5-bit
6-bit
8-bit
Model tree for speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF
Base model
speakleash/Bielik-11B-v3-Base-20250730
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="speakleash/Bielik-Minitron-7B-v3.0-Instruct-GGUF", filename="", )