Instructions to use kaxap/mlx-DeepSeek-R1-0528-2bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use kaxap/mlx-DeepSeek-R1-0528-2bit 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("kaxap/mlx-DeepSeek-R1-0528-2bit") 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 kaxap/mlx-DeepSeek-R1-0528-2bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "kaxap/mlx-DeepSeek-R1-0528-2bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "kaxap/mlx-DeepSeek-R1-0528-2bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kaxap/mlx-DeepSeek-R1-0528-2bit", "messages": [ {"role": "user", "content": "Hello"} ] }'
Add files using upload-large-folder tool
Browse files
model-00013-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71290d45e10215981a9d05566ad45acd0cffa73cdc45008cfbfc6fe9eedfaeb4
|
| 3 |
+
size 4849502844
|
model-00019-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c7e2dad6cd68d1a3dae5115892b8b57866dc491225a1e633bc49b61f8494f9e
|
| 3 |
+
size 4849502780
|
model-00036-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8fcfd65d23d5e7d06284a5765305247269d7df78abd3d5f851b4790e657d90c
|
| 3 |
+
size 4773562463
|
model-00042-of-00044.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbdd713c7f5013c4c4b3ab8b8afb7f73550564ae64a2e177e4fc3664a0510a5f
|
| 3 |
+
size 4773562461
|