Listen to this Post
Recently, Deepseek launched its frontier model R1, a reasoning-based AI model that has shown impressive performance at a fraction of the cost of OpenAI’s o1. The model leverages a Sparse Mixture of Experts (MoE) architecture and a double reinforcement learning approach, reducing reliance on supervised training. Here’s a breakdown of its key features:
- Cost Efficiency: Deepseek R1 is 27x cheaper than OpenAI o1, with input token costs at $0.14 (cached) and $0.55 (non-cached) per million tokens, compared to o1’s $7.50 (cached) and $15.0 (non-cached). Output token costs are $2.19 for R1 versus $60 for o1.
- Open-Source Advantage: R1 can be distilled into smaller models, making it accessible for local use on PCs, unlike o1, which lacks distillation capabilities.
- Performance: R1 excels in math-based and software engineering reasoning tasks, scoring 79.8 on AIME 2024 and 97.3 on MATH 500, compared to o1’s 79.2 and 96.4, respectively.
- Prompting Suggestions: The research paper recommends zero-shot prompting for improved reasoning, advising users to be direct in their queries.
You Should Know:
Here are some practical commands and tools to experiment with AI models like Deepseek R1:
1. Install Ollama for Local Model Use:
curl -fsSL https://ollama.ai/install.sh | sh ollama pull deepseek-r1-1.5b ollama run deepseek-r1-1.5b
2. Run a Zero-Shot
ollama run deepseek-r1-1.5b "Solve this math problem: 2x + 5 = 15"
3. Compare Model Costs:
Use Python to calculate token costs:
def calculate_cost(input_tokens, output_tokens, model="R1"): if model == "R1": input_cost = 0.14 if cached else 0.55 output_cost = 2.19 elif model == "o1": input_cost = 7.50 if cached else 15.0 output_cost = 60 total_cost = (input_tokens / 1e6 * input_cost) + (output_tokens / 1e6 * output_cost) return total_cost
4. Monitor Model Performance:
Use Linux system monitoring tools:
top -o %CPU # Monitor CPU usage nvidia-smi # Check GPU utilization for local models
5. Experiment with Distillation:
Use Hugging Face’s `transformers` library to distill R1:
from transformers import pipeline
distilled_model = pipeline("text-generation", model="deepseek-r1-distilled")
print(distilled_model("Explain reinforcement learning in simple terms."))
What Undercode Say:
Deepseek R1 represents a significant leap in cost-effective AI reasoning models, challenging giants like OpenAI. Its open-source nature and distillation capabilities make it accessible for developers and researchers. By leveraging tools like Ollama and Hugging Face, users can experiment with R1 locally, exploring its potential in math, coding, and reasoning tasks. As AI continues to evolve, models like R1 pave the way for democratizing advanced AI technologies.
For further reading, check out the Deepseek R1 Research Paper and Ollama Documentation.
References:
Reported By: Ai Chatgpt – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅


