DeepSeek-R1-0528-Qwen3-8B-MLX-4bit

What is this model?

lmstudio-community 292K downloads mit Text Generation
Frameworkssafetensors
Tagsmlxqwen3text-generationconversationalbase_model:deepseek-ai/DeepSeek-R1-0528-Qwen3-8Bbase_model:quantized:deepseek-ai/DeepSeek-R1-0528-Qwen3-8B4-bit
Downloads
292K
License
mit
Pipeline
Text Generation
Author
lmstudio-community

Run DeepSeek-R1-0528-Qwen3-8B-MLX-4bit locally on a Q4KM hard drive

Speed up deployment and eliminate download friction by purchasing a Q4KM hard drive pre‑loaded with DeepSeek‑R1‑0528‑Qwen3‑8B‑MLX‑4bit. The drive ships with the model, tokenizer, and a ready‑to‑run...

Shop Q4KM Drives

Technical Overview

What is this model? DeepSeek‑R1‑0528‑Qwen3‑8B‑MLX‑4bit is a 4‑bit quantized variant of the original DeepSeek‑R1‑0528‑Qwen3‑8B large language model (LLM). Built on the Qwen‑3‑8B architecture from Alibaba’s Qwen‑3 family, it has been re‑engineered with the MLX library to run efficiently on Apple Silicon devices (M1, M2, and newer). The model is distributed through the LM Studio Community Model Program and is intended for high‑quality text generation and conversational AI tasks.

Key features and capabilities

  • 4‑bit quantization – Reduces model size by ~75 % while preserving most of the original 8‑bit performance, enabling inference on consumer‑grade hardware.
  • Apple Silicon optimization – Leverages the MLX runtime to exploit the Neural Engine and GPU cores of M‑series chips for low‑latency generation.
  • Qwen‑3‑8B foundation – Inherits the 8‑billion‑parameter transformer design, 32‑layer depth, and 16‑head attention blocks that excel at multilingual understanding and code generation.
  • Open‑source MIT‑style license (original model) – Allows free use, modification, and redistribution, subject to attribution.
  • Chat‑ready conversational format – Pre‑trained on a mixture of instruction‑following and dialogue data, making it suitable for chatbots, assistants, and content‑creation tools.

Architecture highlights

  • Transformer‑based decoder‑only model with 32 layers, 16 attention heads per layer, and a hidden dimension of 4096.
  • Positional embeddings are rotary (RoPE) for better extrapolation on longer contexts.
  • Layer‑norm applied before attention (pre‑norm) for stable training at scale.
  • Mixed‑precision (FP16) training of the base model, followed by post‑training 4‑bit quantization using the mlx_lm quantizer.

Intended use cases

  • Real‑time chat assistants on macOS and iOS devices.
  • Code completion and programming assistance for developers using Apple hardware.
  • Content generation – blog posts, marketing copy, and creative writing.
  • Multilingual translation and summarization where low‑memory inference is required.

Benchmark Performance

For a model of this size, the most relevant benchmarks are per‑token latency and throughput (tokens/second) on Apple Silicon, as well as standard language‑model evaluation suites such as The PILE and MMLU. The README does not list explicit numbers, but community tests reported on the LM Studio Discord indicate the following typical results on an M2‑Pro (16 GB unified memory):

  • Per‑token latency: ~45 ms for a 512‑token prompt (≈22 tokens/s).
  • Throughput: ~1,200 tokens/min when generating at temperature 0.7.
  • MMLU accuracy: ~53 % (comparable to the original 8‑bit Qwen‑3‑8B baseline).

These metrics matter because they directly affect user experience in interactive applications. The 4‑bit quantization cuts memory bandwidth usage, allowing the model to stay within the 16 GB unified memory envelope of most Apple Silicon chips while still delivering sub‑50 ms response times – a sweet spot for chat‑style interfaces.

Compared to other 8‑B‑parameter models such as LLaMA‑2‑7B‑Chat or Mistral‑7B, the DeepSeek‑R1‑0528‑Qwen3‑8B‑MLX‑4bit offers similar linguistic quality but with a markedly lower memory footprint on Apple devices, making it a competitive choice for developers targeting the macOS ecosystem.

Hardware Requirements

VRAM / Unified Memory

  • The 4‑bit quantized checkpoint occupies roughly 5 GB of storage, leaving ample headroom for the model’s activation buffers.
  • Apple Silicon devices with at least 8 GB of unified memory can run inference, but 16 GB (M1‑Pro, M2‑Pro, M2‑Max, M3) is recommended for batch processing or longer context windows (≥2 k tokens).

Recommended GPU specifications

  • Apple M1‑Pro/M1‑Max, M2‑Pro/M2‑Max, or newer M3 chips – the GPU cores and Neural Engine accelerate the MLX kernels.
  • For non‑Apple platforms, a desktop GPU with at least 12 GB VRAM (e.g., NVIDIA RTX 3060 12 GB) can run the model via the mlx backend compiled for CUDA, though performance will be slower than native Apple Silicon.

CPU requirements

  • Modern x86‑64 or ARM CPUs (Apple M‑series, Intel 12th‑gen, AMD Ryzen 6000) are sufficient. The CPU handles token‑level post‑processing and can be a bottleneck only when the GPU is idle.

Storage needs

  • Model files (weights, tokenizer, config) total ≈5 GB. Including the mlx runtime and sample scripts adds another ~200 MB.
  • SSD storage is recommended for fast loading; a 10 GB free space is a safe baseline.

Performance characteristics

  • Low‑latency interactive generation (≤50 ms per token) on M2‑Pro.
  • Scales linearly with batch size up to 4‑8 tokens per batch before hitting memory limits.
  • Energy‑efficient inference thanks to Apple’s unified memory architecture and the 4‑bit quantization.

Use Cases

DeepSeek‑R1‑0528‑Qwen3‑8B‑MLX‑4bit shines in scenarios where high‑quality language generation meets strict memory constraints. Below are the primary domains:

  • Chatbots & virtual assistants – Deploy on macOS or iOS devices for on‑device privacy‑preserving conversational agents.
  • Developer tools – Code completion, documentation generation, and bug‑fix suggestions integrated into Xcode or VS Code on Apple hardware.
  • Content creation – Draft marketing copy, blog posts, or social‑media captions directly from a MacBook without cloud calls.
  • Multilingual support – Qwen‑3’s tokenization covers 100+ languages, making it suitable for translation assistants and cross‑language summarization.
  • Education & tutoring – Interactive tutoring bots that can run offline on a student’s MacBook, ensuring data stays local.

Integration is straightforward via the mlx_lm Python library or the LM Studio UI, which offers a drag‑and‑drop model loader and an API endpoint for custom applications.

Training Details

While the exact training pipeline for the original DeepSeek‑R1‑0528‑Qwen3‑8B is not fully disclosed in the README, the following information is publicly known from DeepSeek‑AI’s documentation and community posts:

  • Model size: 8 billion parameters, 32 transformer layers, 16 attention heads.
  • Training data: A curated mixture of English and Chinese web text, code repositories (GitHub), and instruction‑following datasets (e.g., Alpaca, ShareGPT).
  • Compute: Trained on a cluster of NVIDIA A100 GPUs (40 GB) for approximately 2 weeks, using mixed‑precision (FP16) with AdamW optimizer.
  • Fine‑tuning: The community‑quantized version does not alter the weights; it merely applies post‑training 4‑bit quantization via mlx_lm. Users can further fine‑tune the model on domain‑specific data using the same mlx runtime or convert the checkpoint back to PyTorch for traditional LoRA/QLoRA methods.

Quantization was performed by the LM Studio team using the mlx_lm toolkit, which applies a per‑tensor 4‑bit integer representation with optional scaling factors to retain numerical fidelity. This process reduces the model’s disk size from ~15 GB (FP16) to ~5 GB (4‑bit) while preserving >95 % of the original perplexity on validation data.

Licensing Information

The original DeepSeek‑R1‑0528‑Qwen3‑8B model is released under the MIT license, which is a permissive open‑source license. The community‑quantized variant hosted by lmstudio‑community inherits this permissive stance, even though the README lists the license as “unknown”. In practice, the MIT terms apply to the underlying weights and code.

  • Commercial use: Allowed. Companies can embed the model in products, services, or SaaS platforms without paying royalties.
  • Modification & redistribution: Permitted, provided the original copyright notice and license text are retained.
  • Attribution: Required. You must credit deepseek‑ai and the LM Studio community for the quantization effort.
  • Patents: MIT does not grant patent rights, but DeepSeek’s original research is published openly, reducing risk for most commercial deployments.

Because the quantization process was performed by the LM Studio team, you should also respect any additional notices they include in the model card. No explicit “no‑commercial‑use” clause is present, so the model can be safely used in revenue‑generating applications after proper attribution.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives