Instructions to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix 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 speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M # Run inference directly in the terminal: llama cli -hf speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M # Run inference directly in the terminal: llama cli -hf speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix: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-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix: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-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
Use Docker
docker model run hf.co/speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix" # 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-11B-v2.1-Instruct-GGUF-IQ-Imatrix", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
- SGLang
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix 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-11B-v2.1-Instruct-GGUF-IQ-Imatrix" \ --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-11B-v2.1-Instruct-GGUF-IQ-Imatrix", "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-11B-v2.1-Instruct-GGUF-IQ-Imatrix" \ --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-11B-v2.1-Instruct-GGUF-IQ-Imatrix", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix with Ollama:
ollama run hf.co/speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
- Unsloth Studio
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix 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-11B-v2.1-Instruct-GGUF-IQ-Imatrix 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-11B-v2.1-Instruct-GGUF-IQ-Imatrix 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-11B-v2.1-Instruct-GGUF-IQ-Imatrix to start chatting
- Docker Model Runner
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix with Docker Model Runner:
docker model run hf.co/speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
- Lemonade
How to use speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix:Q4_K_M
Run and chat with the model
lemonade run user.Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix
This is an experimental version of the repository containing quantized Bielik-11B-v.2.1-Instruct models using calibration with importance matrix (imatrix). Models with low precision (2bit, 3bit) for use in mobile devices or minicomputers. Note that these models should be used mainly in instructional mode (not chat). We recommend setting low temperature values. Models with higher precision 4-8bit after calibration may show better quality than models without calibration.
DISCLAIMER: Be aware that quantised models show reduced response quality and possible hallucinations!
Available quantization formats:
- IQ1_M: (1.75bit) Extremely low quality, not recommended.
- IQ2_XXS: Lower quality, uses SOTA techniques to be usable.
- IQ3_XXS: Lower quality, new method with decent performance, comparable to Q3 quants.
- IQ4_XS: Decent quality, smaller than Q4_K_S with similar performance, recommended.
- 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.
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-11B-v2.1-Instruct.Q4_K_M.gguf (full path to model location) Modfile looks like:
FROM ./Bielik-11B-v2.1-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
Model description:
- Developed by: SpeakLeash & ACK Cyfronet AGH
- Language: Polish
- Model type: causal decoder-only
- Quant from: Bielik-11B-v2.1-Instruct
- Finetuned from: Bielik-11B-v2
- License: Apache 2.0 and Terms of Use
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.
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
- 272
1-bit
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for speakleash/Bielik-11B-v2.1-Instruct-GGUF-IQ-Imatrix
Base model
speakleash/Bielik-11B-v2