<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Suvarna taware on Medium]]></title>
        <description><![CDATA[Stories by Suvarna taware on Medium]]></description>
        <link>https://medium.com/@suvarnaptaware?source=rss-6d6bb9119ada------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JXG0-Af-TYNZ6wEAzSe9Tw@2x.jpeg</url>
            <title>Stories by Suvarna taware on Medium</title>
            <link>https://medium.com/@suvarnaptaware?source=rss-6d6bb9119ada------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 15:00:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suvarnaptaware/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DeepSeek - Hardware requirement to run locally]]></title>
            <link>https://medium.com/@suvarnaptaware/deepseek-hardware-requirement-to-run-locally-139f1b6d278d?source=rss-6d6bb9119ada------2</link>
            <guid isPermaLink="false">https://medium.com/p/139f1b6d278d</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Suvarna taware]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 17:57:24 GMT</pubDate>
            <atom:updated>2025-01-29T17:58:24.683Z</atom:updated>
            <content:encoded><![CDATA[<h2>Hardware Requirements for Running DeepSeek Locally</h2><p>DeepSeek models are large, so your hardware setup depends on the model size and whether you’re training or just using it for inference.</p><p>💻 Minimum Requirements (CPU Only, Small Models)</p><p>For running DeepSeek-Coder 1.3B or similar models on CPU:</p><p>✅ CPU: Intel i7 (8th Gen or later) / AMD Ryzen 5 (or better)</p><p>✅ RAM: 16GB (Absolute Minimum, 32GB Recommended)</p><p>✅ Storage: 50GB SSD (for model downloads &amp; caching)</p><p>✅ OS: Ubuntu 22.04 / Windows 11 / macOS</p><p>⚠️ Limitations:</p><p>•	Inference will be very slow (minutes per response)</p><p>•	Not suitable for training</p><p>🔥 Recommended for Inference &amp; Fine-Tuning (GPU Required)</p><p>For fine-tuning DeepSeek-Coder 1.3B – 6.7B:</p><p>✅ GPU: NVIDIA RTX 3090 / A6000 / RTX 4090 (Minimum 24GB VRAM)</p><p>✅ CPU: AMD Ryzen 9 / Intel i9 (8+ cores)</p><p>✅ RAM: 64GB (More for larger models)</p><p>✅ Storage: 500GB NVMe SSD (fast I/O)</p><p>✅ OS: Ubuntu 22.04 (Best for AI)</p><p>🚀 High-End Setup for Large Models (DeepSeek-Coder 33B &amp; Beyond)</p><p>If you want to train or fine-tune DeepSeek-Coder 33B+, you need:</p><p>✅ Multi-GPU Setup:</p><p>•	2× NVIDIA A100 (40GB) or H100 (80GB)</p><p>•	Or 4× RTX 4090 (24GB each, but needs parallelization)</p><p>✅ RAM: 128GB+</p><p>✅ Storage: 2TB NVMe SSD</p><p>✅ Cooling &amp; PSU: High-end power supply &amp; cooling for GPUs</p><p>⚠️ Costly! Consider using cloud solutions (AWS, Lambda Labs, RunPod).</p><p>🛠 How to Check Your Hardware</p><p>Check RAM &amp; CPU (Linux/Mac)</p><p>free -h. # RAM info</p><p>lscpu. # CPU info</p><p>Check GPU (NVIDIA)</p><p>nvidia-smi. # Shows GPU usage &amp; memory</p><p>📌 Final Recommendation</p><p>Task	Minimum Specs	Recommended Specs	For Large Models (33B+)</p><p>Inference	i7, 16GB RAM, SSD	RTX 3090 (24GB), 64GB RAM	2x A100 GPUs, 128GB RAM</p><p>Fine-Tuning	Not feasible	RTX 4090 (24GB), 64GB RAM	4x RTX 4090 or 2x A100</p><p>Training from Scratch	Not feasible	Not feasible	4x A100 / H100 GPUs</p><p>💡 For casual use, a 3090/4090 GPU setup is best for local fine-tuning. 🚀 If you need help setting up, let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=139f1b6d278d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek - Step by step guide to deploy in aws]]></title>
            <link>https://medium.com/@suvarnaptaware/deepseek-step-by-step-guide-to-deploy-in-aws-163f8f851cc6?source=rss-6d6bb9119ada------2</link>
            <guid isPermaLink="false">https://medium.com/p/163f8f851cc6</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deepseek]]></category>
            <dc:creator><![CDATA[Suvarna taware]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 17:51:16 GMT</pubDate>
            <atom:updated>2025-01-29T17:58:36.239Z</atom:updated>
            <content:encoded><![CDATA[<h2>Deploy DeepSeek Model on AWS: Step-by-Step Guide</h2><p>Introduction</p><p>Deploying a DeepSeek model on AWS allows you to serve it as an API, enabling applications to access it remotely. This guide covers:</p><p>✅ Setting up an AWS EC2 instance</p><p>✅ Deploying the model with FastAPI</p><p>✅ Running the model as a service</p><p>✅ Scaling with AWS Lambda (Optional)</p><p>Step 1: Choose an AWS Instance for Deployment</p><p>Since DeepSeek models are large, a GPU-based EC2 instance is recommended.</p><p>1.1 Launch an EC2 Instance</p><p>1.	Log in to your AWS Console → Go to EC2 Dashboard</p><p>2.	Click Launch Instance</p><p>3.	Choose an Instance Type:</p><p>•	GPU-based (Recommended for larger models):</p><p>•	g4dn.xlarge (1 NVIDIA GPU, 4 vCPUs, 16GB RAM)</p><p>•	p3.2xlarge (Tesla V100, 8 vCPUs, 61GB RAM)</p><p>•	CPU-based (For small models):</p><p>•	t3.medium (2 vCPUs, 4GB RAM)</p><p>4.	Select an Amazon Machine Image (AMI):</p><p>•	Deep Learning AMI (Ubuntu 20.04)</p><p>•	Or use Ubuntu 22.04 and install dependencies manually</p><p>5.	Storage &amp; Security:</p><p>•	Set at least 50GB storage</p><p>•	Open ports 22 (SSH) and 8000 (API access)</p><p>Step 2: Install Required Dependencies</p><p>Once the instance is running, SSH into it:</p><p>ssh -i your-key.pem ubuntu@your-ec2-public-ip</p><p>2.1 Install Python &amp; Libraries</p><p>sudo apt update &amp;&amp; sudo apt install -y python3-pip</p><p>pip install torch torchvision torchaudio transformers fastapi uvicorn</p><p>💡 If using GPU, install CUDA-supported PyTorch:</p><p>pip install torch torchvision torchaudio – index-url https://download.pytorch.org/whl/cu118</p><p>Step 3: Download the DeepSeek Model</p><p>We will use DeepSeek Coder 1.3B as an example.</p><p>from transformers import AutoModelForCausalLM, AutoTokenizer</p><p>model_name = “deepseek-ai/deepseek-coder-1.3b”</p><p>tokenizer = AutoTokenizer.from_pretrained(model_name)</p><p>model = AutoModelForCausalLM.from_pretrained(model_name)</p><p>✅ This will automatically download the model to /home/ubuntu/.cache/huggingface/.</p><p>Step 4: Create a FastAPI App</p><p>FastAPI makes it easy to expose the model as an API.</p><p>4.1 Create app.py</p><p>from fastapi import FastAPI</p><p>from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM</p><p># Load the model</p><p>model_name = “deepseek-ai/deepseek-coder-1.3b”</p><p>tokenizer = AutoTokenizer.from_pretrained(model_name)</p><p>model = AutoModelForCausalLM.from_pretrained(model_name)</p><p>text_generator = pipeline(“text-generation”, model=model, tokenizer=tokenizer)</p><p># Initialize FastAPI</p><p>app = FastAPI()</p><p>@app.get(“/”)</p><p>def read_root():</p><p>. return {“message”: “DeepSeek API is running”}</p><p>@app.post(“/generate/”)</p><p>def generate_code(prompt: str):</p><p>. result = text_generator(prompt, max_length=100)</p><p>. return {“generated_text”: result[0][‘generated_text’]}</p><p>Step 5: Run the API Server</p><p>Start the API on port 8000:</p><p>uvicorn app:app – host 0.0.0.0 – port 8000 – workers 2</p><p>✅ The API is now accessible at http://your-ec2-public-ip:8000.</p><p>Step 6: Test the API</p><p>You can test it using cURL:</p><p>curl -X ‘POST’ ‘http://your-ec2-public-ip:8000/generate/’ \</p><p>-H ‘Content-Type: application/json’ \</p><p>-d ‘{“prompt”: “def add(a, b):”}’</p><p>Or use Python:</p><p>import requests</p><p>response = requests.post(“http://your-ec2-public-ip:8000/generate/”, json={“prompt”: “def add(a, b):”})</p><p>print(response.json())</p><p>Step 7: Set Up Auto-Restart (Optional)</p><p>To keep the API running even after a reboot:</p><p>sudo apt install screen</p><p>screen -S deepseek-api</p><p>uvicorn app:app – host 0.0.0.0 – port 8000 – workers 2</p><p>(Press Ctrl+A, D to detach and keep it running in the background.)</p><p>Step 8: Scale with AWS Lambda &amp; API Gateway (Optional)</p><p>For a serverless solution:</p><p>1.	Package the model into an AWS Lambda function</p><p>2.	Use Amazon S3 for model storage</p><p>3.	Deploy via AWS API Gateway</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=163f8f851cc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DeepSeek - Step by Step guide]]></title>
            <link>https://medium.com/@suvarnaptaware/deepseek-step-by-step-guide-48c8fe3be7db?source=rss-6d6bb9119ada------2</link>
            <guid isPermaLink="false">https://medium.com/p/48c8fe3be7db</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Suvarna taware]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 17:44:16 GMT</pubDate>
            <atom:updated>2025-01-29T18:12:31.536Z</atom:updated>
            <content:encoded><![CDATA[<h2>Train a DeepSeek Model Locally: An End-to-End Guide</h2><p>Introduction</p><p>DeepSeek is a powerful AI model for coding, text generation, and other NLP tasks. In this guide, we will walk through training a DeepSeek model locally, using a simple dataset for fine-tuning.</p><p>This blog is beginner-friendly and covers:</p><p>✅ Downloading the DeepSeek model</p><p>✅ Setting up the environment</p><p>✅ Preparing the dataset</p><p>✅ Fine-tuning DeepSeek on a small dataset</p><p>✅ Saving and using the trained model</p><p>hardware requirements-</p><p><a href="https://medium.com/@suvarnaptaware/deepseek-hardware-requirement-to-run-locally-139f1b6d278d">DeepSeek - Hardware requirement to run locally</a></p><p>Step 1: Install Required Libraries</p><p>To get started, install the required dependencies:</p><p>pip install torch transformers datasets accelerate</p><p>•	torch → Deep learning framework</p><p>•	transformers → Pre-trained DeepSeek model</p><p>•	datasets → Load and process data</p><p>•	accelerate → Optimize training</p><p>💡 GPU Setup: If you have an NVIDIA GPU, install PyTorch with CUDA:</p><p>pip install torch torchvision torchaudio – index-url https://download.pytorch.org/whl/cu118</p><p>Step 2: Download the DeepSeek Model</p><p>We will use DeepSeek Coder 1.3B, a lightweight version suitable for local fine-tuning.</p><p>from transformers import AutoModelForCausalLM, AutoTokenizer</p><p># Define the model name</p><p>model_name = “deepseek-ai/deepseek-coder-1.3b”</p><p># Load model and tokenizer</p><p>tokenizer = AutoTokenizer.from_pretrained(model_name)</p><p>model = AutoModelForCausalLM.from_pretrained(model_name)</p><p>✅ This automatically downloads the model weights and stores them in the Hugging Face cache.</p><p>Step 3: Prepare the Dataset</p><p>We will fine-tune DeepSeek on a custom dataset of Python programming examples.</p><p>3.1 Create a Simple Dataset</p><p>Let’s define a JSON file with Python code snippets. Save it as code_dataset.json:</p><p>[</p><p>. {“text”: “def add(a, b): return a + b”},</p><p>. {“text”: “def multiply(a, b): return a * b”},</p><p>. {“text”: “def factorial(n): return 1 if n==0 else n * factorial(n-1)”}</p><p>]</p><p>3.2 Load and Tokenize the Dataset</p><p>from datasets import load_dataset</p><p># Load dataset</p><p>dataset = load_dataset(“json”, data_files=”code_dataset.json”)</p><p># Tokenize the dataset</p><p>def tokenize_function(examples):</p><p>. return tokenizer(examples[“text”], padding=”max_length”, truncation=True, max_length=128)</p><p>tokenized_datasets = dataset.map(tokenize_function, batched=True)</p><p>✅ This converts raw text into tokenized input for training.</p><p>Step 4: Define Training Parameters</p><p>We use the Trainer API to handle training configurations.</p><p>from transformers import TrainingArguments</p><p>training_args = TrainingArguments(</p><p>. output_dir=”./deepseek-finetuned”,</p><p>. per_device_train_batch_size=2,</p><p>. num_train_epochs=3,</p><p>. evaluation_strategy=”epoch”,</p><p>. save_strategy=”epoch”,</p><p>. logging_dir=”./logs”,</p><p>. logging_steps=10</p><p>)</p><p>Step 5: Train the Model</p><p>from transformers import Trainer</p><p>trainer = Trainer(</p><p>. model=model,</p><p>. args=training_args,</p><p>. train_dataset=tokenized_datasets[“train”],</p><p>)</p><p>trainer.train()</p><p>🚀 Fine-tuning begins!</p><p>•	Each epoch adjusts the model’s weights to learn from your dataset.</p><p>•	The training logs will show loss reduction, indicating learning progress.</p><p>Step 6: Save and Test the Trained Model</p><p>6.1 Save the Model</p><p>model.save_pretrained(“./deepseek-finetuned”)</p><p>tokenizer.save_pretrained(“./deepseek-finetuned”)</p><p>6.2 Load and Generate Text</p><p>Now, let’s test the fine-tuned model:</p><p>from transformers import pipeline</p><p># Load trained model</p><p>fine_tuned_model = AutoModelForCausalLM.from_pretrained(“./deepseek-finetuned”)</p><p>fine_tuned_tokenizer = AutoTokenizer.from_pretrained(“./deepseek-finetuned”)</p><p># Generate Python code</p><p>code_generator = pipeline(“text-generation”, model=fine_tuned_model, tokenizer=fine_tuned_tokenizer)</p><p>output = code_generator(“def divide(a, b):”, max_length=50)</p><p>print(output[0][‘generated_text’])</p><p>✅ The model will now generate Python code based on your fine-tuned dataset!</p><p>Conclusion</p><p>In this guide, we trained a DeepSeek model locally on a small Python dataset. We:</p><p>✔ Installed dependencies</p><p>✔ Downloaded DeepSeek</p><p>✔ Tokenized a dataset</p><p>✔ Fine-tuned DeepSeek</p><p>✔ Saved and tested the model</p><p>Next Steps</p><p>•	Train on larger datasets</p><p>•	Fine-tune for code completion or chatbot tasks</p><p>•	Deploy your model using FastAPI or Flask</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48c8fe3be7db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>