Instructions to use vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Add files using upload-large-folder tool
Browse files- README.md +1 -1
- config.json +4 -2
README.md
CHANGED
|
@@ -23,7 +23,7 @@ pipeline_tag: text-generation
|
|
| 23 |
|
| 24 |
This model [vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit](https://huggingface.co/vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit) was
|
| 25 |
converted to MLX format from [speakleash/Bielik-1.5B-v3.0-Instruct](https://huggingface.co/speakleash/Bielik-1.5B-v3.0-Instruct)
|
| 26 |
-
using mlx-lm version **0.
|
| 27 |
|
| 28 |
## Use with mlx
|
| 29 |
|
|
|
|
| 23 |
|
| 24 |
This model [vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit](https://huggingface.co/vqstudio/Bielik-1.5B-v3.0-Instruct-MLX-4bit) was
|
| 25 |
converted to MLX format from [speakleash/Bielik-1.5B-v3.0-Instruct](https://huggingface.co/speakleash/Bielik-1.5B-v3.0-Instruct)
|
| 26 |
+
using mlx-lm version **0.28.3**.
|
| 27 |
|
| 28 |
## Use with mlx
|
| 29 |
|
config.json
CHANGED
|
@@ -24,11 +24,13 @@
|
|
| 24 |
"pretraining_tp": 1,
|
| 25 |
"quantization": {
|
| 26 |
"group_size": 64,
|
| 27 |
-
"bits": 4
|
|
|
|
| 28 |
},
|
| 29 |
"quantization_config": {
|
| 30 |
"group_size": 64,
|
| 31 |
-
"bits": 4
|
|
|
|
| 32 |
},
|
| 33 |
"rms_norm_eps": 1e-06,
|
| 34 |
"rope_scaling": null,
|
|
|
|
| 24 |
"pretraining_tp": 1,
|
| 25 |
"quantization": {
|
| 26 |
"group_size": 64,
|
| 27 |
+
"bits": 4,
|
| 28 |
+
"mode": "affine"
|
| 29 |
},
|
| 30 |
"quantization_config": {
|
| 31 |
"group_size": 64,
|
| 32 |
+
"bits": 4,
|
| 33 |
+
"mode": "affine"
|
| 34 |
},
|
| 35 |
"rms_norm_eps": 1e-06,
|
| 36 |
"rope_scaling": null,
|