Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit
235
1
4.0B
1 language
llama
by
hsefz-ChenJunJie
Language Model
OTHER
4B params
New
235 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
9GB+ RAM
Mobile
Laptop
Server
Quick Summary
hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit The Model hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit was converted to MLX format from merg...
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
4GB+ RAM
Code Examples
Use with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxbash
pip install mlx-lmUse with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Use with mlxpython
from mlx_lm import load, generate
model, tokenizer = load("hsefz-ChenJunJie/Deepseek-R1-Distill-NSFW-RPv1-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.