<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Notarena</title>
    <description>The latest articles on DEV Community by Notarena (@notarena).</description>
    <link>https://dev.to/notarena</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2222648%2F18e1bcfc-c3db-4741-becd-108ac5a7dfad.png</url>
      <title>DEV Community: Notarena</title>
      <link>https://dev.to/notarena</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/notarena"/>
    <language>en</language>
    <item>
      <title>Running DeepSeek-R1 Model on Your Local Machine</title>
      <dc:creator>Notarena</dc:creator>
      <pubDate>Wed, 29 Jan 2025 17:10:18 +0000</pubDate>
      <link>https://dev.to/notarena/running-deepseek-r1-model-on-your-local-machine-5fcb</link>
      <guid>https://dev.to/notarena/running-deepseek-r1-model-on-your-local-machine-5fcb</guid>
      <description>&lt;p&gt;I remember that DeepSeek is a Chinese company that has developed various AI models, including the DeepSeek-R1-Large-Preview. They have open-sourced some models on Hugging Face.&lt;/p&gt;

&lt;p&gt;First, I need to outline the prerequisites. The user will need Python installed, probably Python 3.8 or higher. They'll need a code editor like VS Code. Hardware-wise, since it's a large model, a GPU with sufficient VRAM is necessary. Maybe mention that without a GPU, it's possible but slow. Then, they need to install libraries like transformers, torch, accelerate, and sentencepiece. Oh right, the transformers library from Hugging Face is &lt;a href="//notarena.com"&gt;essential &lt;/a&gt;for loading the model.&lt;/p&gt;

&lt;p&gt;Next, obtaining the model. The model is on Hugging Face, so they need to request access. Once granted, they can use the Hugging Face CLI or Git LFS to download it. Maybe provide the commands for that. Also, logging into Hugging Face from the CLI might be required.&lt;/p&gt;

&lt;p&gt;Then, writing the Python script. Import AutoModelForCausalLM and AutoTokenizer from transformers. Load the model using the model name, and set the device map to auto for multi-GPU support. They need to make sure the model path is correct, pointing to where they downloaded it.&lt;/p&gt;

&lt;p&gt;In the inference example, show how to create a prompt, tokenize it, generate a response with parameters like max_new_tokens and temperature. Then decode the tokens back to text. Also, mention that the model uses ChatML format, so the prompt should follow that structure with &amp;lt;|im_start|&amp;gt; and &amp;lt;|im_end|&amp;gt; tags.&lt;/p&gt;

&lt;p&gt;Hardware requirements are important. The model's size affects VRAM usage. For the 7B parameter model, maybe 16GB of VRAM is needed, and for the 13B, 24GB. Quantization could help reduce memory usage, so briefly touch on using bitsandbytes for 4-bit quantization.&lt;/p&gt;

&lt;p&gt;Common issues might include out-of-memory errors, which can be addressed by using a smaller model or quantization. Slow inference on CPU is another point to mention. Also, ensuring that the model is properly downloaded and the path is correct.&lt;/p&gt;

&lt;p&gt;Finally, wrap it up with a conclusion about the steps and possible use cases. Maybe add a note about ethical use and computational resources.&lt;/p&gt;

&lt;p&gt;Wait, did I miss anything? Oh, right, the user might not be familiar with Hugging Face's access process. Should explain that they need to go to the model's page, click on "Request Access," and wait for approval. Also, when using Git LFS, they need to have it installed. And in the code, using device_map="auto" allows the model to utilize available GPUs automatically. Also, mention the use of fp16 to save memory.&lt;/p&gt;

&lt;p&gt;I should check if the model requires any specific tokenizer settings or special tokens. The example prompt uses ChatML, so that's correct. Maybe suggest adjusting temperature and max tokens for different results. Also, the difference between the base and instruct models: if they're using the instruct version, they need to format the prompt accordingly.&lt;/p&gt;

&lt;p&gt;What about dependencies? They need to install transformers, torch, accelerate, and sentencepiece. Maybe specify the pip install commands. Also, note that PyTorch should be installed with CUDA support if using a GPU.&lt;/p&gt;

&lt;p&gt;Possible troubleshooting: if they get an error about not being logged in, they need to run huggingface-cli login. Also, if the model path is incorrect, the script will fail. So make sure the path is correct.&lt;/p&gt;

&lt;p&gt;I think that covers the main points. Structure the answer step-by-step, starting with prerequisites, setup, code example, hardware notes, common issues, and conclusion. Keep it clear and concise, avoiding unnecessary jargon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Here's a step-by-step explanation to run the DeepSeek-R1-Large-Preview model (or similar variants) on your local machine:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Hardware Requirements&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;GPU with at least 16GB VRAM (for 7B parameter models) or 24GB VRAM (for 13B parameter models).&lt;/p&gt;

&lt;p&gt;Sufficient RAM (32GB+ recommended for larger models).&lt;/p&gt;

&lt;p&gt;NVIDIA drivers and CUDA toolkit installed (for GPU acceleration).&lt;/p&gt;

&lt;p&gt;Software Requirements:&lt;/p&gt;

&lt;p&gt;Python 3.8+.&lt;/p&gt;

&lt;p&gt;PyTorch with CUDA support.&lt;/p&gt;

&lt;p&gt;Hugging Face libraries (transformers, accelerate, sentencepiece).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Model Access&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Request access to the DeepSeek-R1 model on Hugging Face Hub (example link).&lt;br&gt;
(Note: Approval may be required from the model's authors.)&lt;/p&gt;

&lt;p&gt;**Step 1: Install Dependencies&lt;br&gt;
**Install the required Python packages:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
pip install torch transformers accelerate sentencepiece&lt;br&gt;
**Step 2: Download the Model&lt;br&gt;
**After gaining access to the model on Hugging Face:&lt;/p&gt;

&lt;p&gt;Option 1: Use git-lfs to clone the repository:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
git lfs install&lt;br&gt;
git clone &lt;a href="https://huggingface.co/deepseek-ai/deepseek-r1-large-preview" rel="noopener noreferrer"&gt;https://huggingface.co/deepseek-ai/deepseek-r1-large-preview&lt;/a&gt;&lt;br&gt;
Option 2: Load the model directly via the Hugging Face API (requires authentication):&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
Copy&lt;br&gt;
from transformers import AutoModelForCausalLM, AutoTokenizer&lt;/p&gt;

&lt;p&gt;model_name = "deepseek-ai/deepseek-r1-large-preview"&lt;br&gt;
tokenizer = AutoTokenizer.from_pretrained(model_name)&lt;br&gt;
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")&lt;br&gt;
**Step 3: Write Inference Code&lt;br&gt;
**Create a Python script (e.g., deepseek_inference.py) to load the model and generate text:&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
Copy&lt;br&gt;
from transformers import AutoModelForCausalLM, AutoTokenizer&lt;/p&gt;

&lt;h1&gt;
  
  
  Load model and tokenizer
&lt;/h1&gt;

&lt;p&gt;model_path = "deepseek-r1-large-preview"  # Path to local model or Hugging Face ID&lt;br&gt;
tokenizer = AutoTokenizer.from_pretrained(model_path)&lt;br&gt;
model = AutoModelForCausalLM.from_pretrained(&lt;br&gt;
    model_path,&lt;br&gt;
    device_map="auto",  # Auto-select GPU/CPU&lt;br&gt;
    torch_dtype="auto",  # Automatically choose FP16/FP32&lt;br&gt;
)&lt;/p&gt;

&lt;h1&gt;
  
  
  Create a prompt
&lt;/h1&gt;

&lt;p&gt;prompt = "&amp;lt;|im_start|&amp;gt;user\nWrite a poem about AI.&amp;lt;|im_end|&amp;gt;\n&amp;lt;|im_start|&amp;gt;assistant\n"&lt;/p&gt;

&lt;h1&gt;
  
  
  Tokenize input
&lt;/h1&gt;

&lt;p&gt;inputs = tokenizer(prompt, return_tensors="pt").to(model.device)&lt;/p&gt;

&lt;h1&gt;
  
  
  Generate response
&lt;/h1&gt;

&lt;p&gt;outputs = model.generate(&lt;br&gt;
    **inputs,&lt;br&gt;
    max_new_tokens=256,&lt;br&gt;
    temperature=0.7,&lt;br&gt;
    do_sample=True,&lt;br&gt;
)&lt;/p&gt;

&lt;h1&gt;
  
  
  Decode and print output
&lt;/h1&gt;

&lt;p&gt;response = tokenizer.decode(outputs[0], skip_special_tokens=False)&lt;br&gt;
print(response)&lt;br&gt;
Key Notes&lt;br&gt;
&lt;strong&gt;Model Format&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;The DeepSeek-R1 model uses the ChatML format for prompts. Use the &amp;lt;|im_start|&amp;gt; and &amp;lt;|im_end|&amp;gt; tokens to structure your input (similar to OpenAI's ChatML).&lt;/p&gt;

&lt;p&gt;Example prompt:&lt;/p&gt;

&lt;p&gt;Copy&lt;br&gt;
&amp;lt;|im_start|&amp;gt;user\nYour question here&amp;lt;|im_end|&amp;gt;\n&amp;lt;|im_start|&amp;gt;assistant\n&lt;br&gt;
Quantization (Optional):&lt;/p&gt;

&lt;p&gt;Reduce VRAM usage by loading the model in 4-bit or 8-bit mode:&lt;/p&gt;

&lt;p&gt;python&lt;br&gt;
Copy&lt;br&gt;
model = AutoModelForCausalLM.from_pretrained(&lt;br&gt;
    model_path,&lt;br&gt;
    load_in_4bit=True,  # Requires &lt;code&gt;bitsandbytes&lt;/code&gt; library&lt;br&gt;
    device_map="auto",&lt;br&gt;
)&lt;br&gt;
&lt;strong&gt;Performance Tips&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Use fp16 precision for faster inference: torch_dtype=torch.float16.&lt;/p&gt;

&lt;p&gt;Adjust max_new_tokens to control response length.&lt;/p&gt;

&lt;p&gt;Common Errors &amp;amp; Fixes&lt;br&gt;
Out-of-Memory (OOM) Errors:&lt;/p&gt;

&lt;p&gt;Reduce max_new_tokens.&lt;/p&gt;

&lt;p&gt;Use quantization (load_in_4bit=True).&lt;/p&gt;

&lt;p&gt;Upgrade your GPU hardware.&lt;/p&gt;

&lt;p&gt;Model Not Found:&lt;/p&gt;

&lt;p&gt;Ensure you’ve downloaded the model locally or have access to the Hugging Face repository.&lt;/p&gt;

&lt;p&gt;CUDA Errors:&lt;/p&gt;

&lt;p&gt;Verify CUDA and PyTorch compatibility.&lt;/p&gt;

&lt;p&gt;Reinstall PyTorch with CUDA support: pip3 install torch torchvision torchaudio --index-url &lt;a href="https://download.pytorch.org/whl/cu121" rel="noopener noreferrer"&gt;https://download.pytorch.org/whl/cu121&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Example Use Cases&lt;br&gt;
Code Generation: Fine-tune for coding tasks.&lt;/p&gt;

&lt;p&gt;Chat Applications: Deploy as a local chatbot.&lt;/p&gt;

&lt;p&gt;Research: Experiment with alignment techniques or model behavior.&lt;/p&gt;

&lt;p&gt;Ethical Considerations&lt;br&gt;
Ensure compliance with the model's license (check Hugging Face model card).&lt;/p&gt;

&lt;p&gt;Avoid misuse for harmful or unethical purposes.&lt;/p&gt;

&lt;p&gt;By following these steps, you can run DeepSeek-R1 locally for research or development. Adjust parameters based on your hardware and use case!&lt;/p&gt;

</description>
      <category>deepseek</category>
      <category>chatgpt</category>
      <category>llm</category>
      <category>deeplearning</category>
    </item>
    <item>
      <title>How do I Become a Digital Marketing Executive? – Best Marketing Degrees</title>
      <dc:creator>Notarena</dc:creator>
      <pubDate>Tue, 31 Dec 2024 16:53:53 +0000</pubDate>
      <link>https://dev.to/notarena/how-do-i-become-a-digital-marketing-executive-best-marketing-degrees-3b34</link>
      <guid>https://dev.to/notarena/how-do-i-become-a-digital-marketing-executive-best-marketing-degrees-3b34</guid>
      <description>&lt;p&gt;A digital marketing executive plays a crucial role in the success of a company’s online presence and marketing strategies. In today’s digital age, businesses rely heavily on digital marketing to reach their target audience and increase their brand awareness. As a result, the demand for competent digital marketing executives has significantly increased in recent years. &lt;/p&gt;

&lt;p&gt;In this article, I will Explain the role and responsibilities of a digital marketing executive and the steps you can take to become one.&lt;/p&gt;

&lt;p&gt;A &lt;a href="https://notarena.com/blogs/what-is-a-digital-marketing-executive-amp-how-do-i-become/" rel="noopener noreferrer"&gt;Digital Marketing Executive&lt;/a&gt; plays a crucial role in planning and executing online marketing campaigns to boost brand presence and drive sales. With the rising demand, this role offers lucrative career opportunities globally, including in India. In 2024, learn how to become a Digital Marketing Executive by understanding the required qualifications, skills, and responsibilities. This guide covers job descriptions, salaries, and resume tips tailored for aspiring professionals. Explore the qualifications, duties, and essential skills like SEO, content strategy, and analytics to excel in this high-demand role.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How To Make Movies Streaming Websites</title>
      <dc:creator>Notarena</dc:creator>
      <pubDate>Tue, 19 Nov 2024 17:59:37 +0000</pubDate>
      <link>https://dev.to/notarena/how-to-make-movies-streaming-websites-19gc</link>
      <guid>https://dev.to/notarena/how-to-make-movies-streaming-websites-19gc</guid>
      <description>&lt;p&gt;EASYPLEX is a versatile platform designed for streaming movies, TV series, and anime. It provides the functionality to create your own customized streaming platform. The Movie platform offers a robust and player, making it easy to import movie information. EasyPlex is built on Android best practices, utilizing Google’s recommended MVVM architecture. It also includes support for offline viewing, Android Architecture Components, Dagger 2, RxJava 2, and Retrofit 2, ensuring a seamless and feature-rich streaming experience.&lt;/p&gt;

&lt;p&gt;This app uses MVVM with Android Architecture Components and Dagger 2 for Dependency Injection. It has clean code and supports auto import for Movie, Serie, and Upcoming Informations in formats like MP4, WEBM, MKV, FLV, and HLS/M3U8. The app also features a powerful Admin Panel built with VueJs, and it’s easy to reskin with Material Design. The UI is optimized for both phone and tablet, and the app supports Movies, Series, Streaming, and Animes. Additionally, it includes a Movies List Inside Player feature.&lt;/p&gt;

&lt;p&gt;Key Features EasyPlex&lt;br&gt;
MVVM with Android Architecture Components&lt;br&gt;
Dagger 2 for Dependency Injection&lt;br&gt;
Clean code&lt;br&gt;
Auto Import Movie &amp;amp; Serie &amp;amp; Upcoming Information&lt;br&gt;
MP4 WEBM MKV FLV HLS/M3U8&lt;br&gt;
Powerful Admin Panel With VueJs&lt;br&gt;
Easy to reskin&lt;br&gt;
Material Design.&lt;br&gt;
UI optimized for phone and tablet&lt;br&gt;
The app supports Movies, Series, Streaming, Animes&lt;br&gt;
Movies List Inside Player&lt;br&gt;
Interstitial Admob&lt;br&gt;
Facebook Audience Network&lt;br&gt;
UnityAds&lt;br&gt;
Appodeal&lt;br&gt;
StartApp&lt;br&gt;
Powerful UI: Beautiful and modern design.&lt;br&gt;
Register Page – Ability to register a new account.&lt;br&gt;
Login Page –Ability for users to log in&lt;br&gt;
Search Page – Added ability to search for videos&lt;br&gt;
Toasts &amp;amp; Alerts – Added ability to display alerts, Toasts, success, errors, loadings, and more.&lt;br&gt;
Paypal &amp;amp; Stripe payment gateway&lt;br&gt;
Privacy Policy Page&lt;br&gt;
About Us Page&lt;br&gt;
Search Page&lt;br&gt;
Genres Page&lt;br&gt;
MyList Page&lt;br&gt;
Wifi-Only (ON/OFF) &lt;br&gt;
Notifications (ON/OFF) &lt;br&gt;
AutoPlay – (ON/OFF) Play Next Media (Movie or Episode)&lt;br&gt;
Subtitles&lt;br&gt;
Trailer Preview&lt;br&gt;
Admin Panel Features:&lt;br&gt;
VueJS Framework&lt;br&gt;
Statistical Dashboard (Movie– Serie– LiveTV)&lt;br&gt;
Add, Edit, Update, Delete Movie&lt;br&gt;
Add, Edit, Update, Delete Serie&lt;br&gt;
Add, Edit, Update, Delete LiveTV&lt;br&gt;
Add or Upload Media (Movie, series, live)&lt;br&gt;
Settings (ON/OFF) Subtitles &lt;br&gt;
Settings (ON/OFF) Admob Banner &amp;amp; Interstitial&lt;br&gt;
Settings (ON/OFF) Facebook Audience Interstitial &amp;amp; Banner&lt;br&gt;
Settings (ON/OFF) Anime&lt;br&gt;
User Management (Edit or Delete or Update or Upgrade User)&lt;br&gt;
Ad Manager Management (Google Ad Manager, the Google AdSense network, or any VAST-compliant ad server)&lt;br&gt;
Genres Management (Add Custom Genre or Grabe Auto From TMDB)&lt;br&gt;
Qualities Management&lt;br&gt;
Report ( Movie or series)&lt;br&gt;
Add, Edit, Update, Delete Seasons &amp;amp; Episodes&lt;br&gt;
Add, Edit, Delete Media for Movie, Series, LiveTV&lt;br&gt;
Notification Push&lt;/p&gt;

&lt;p&gt;Download Free Script &lt;a href="https://notarena.com/" rel="noopener noreferrer"&gt;Click Here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Most Commonly Asked DSA Interview Questions</title>
      <dc:creator>Notarena</dc:creator>
      <pubDate>Sat, 02 Nov 2024 20:17:19 +0000</pubDate>
      <link>https://dev.to/notarena/most-commonly-asked-dsa-interview-questions-1k2n</link>
      <guid>https://dev.to/notarena/most-commonly-asked-dsa-interview-questions-1k2n</guid>
      <description>&lt;p&gt;&lt;strong&gt;Q: How do you reverse a linked list?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Answer: Reversing a linked list involves changing the direction of its pointers so that the list starts from the last element and ends at the first.&lt;/li&gt;
&lt;li&gt;Example:
Input: 1 -&amp;gt; 2 -&amp;gt; 3 -&amp;gt; 4 -&amp;gt; null
Output: 4 -&amp;gt; 3 -&amp;gt; 2 -&amp;gt; 1 -&amp;gt; null&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Q: How do you perform binary search on a sorted array?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Answer: Binary search divides the array in half repeatedly, checking if the middle element matches the target.&lt;/li&gt;
&lt;li&gt;Example:
Input: Array [1, 3, 5, 7, 9], Target = 7
Output: 3 (index of 7)&lt;/li&gt;
&lt;li&gt;Solution Approach: Check the middle element; if it’s the target, return the index. If the target is smaller, search the left half; if it is larger, search the right half.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Q: How do you find the first unique character in a string?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Answer: To find the first unique character, count each character’s occurrences and identify the first one that appears only once.&lt;/li&gt;
&lt;li&gt;Example:
Input: "Swiss"
Output: "w"&lt;/li&gt;
&lt;li&gt;Solution Approach: Use a hash map to store each character’s frequency, then iterate through the string to find the first character with a count of 1.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Q: How do you detect a cycle in a linked list?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Answer: To detect a cycle in a linked list, use two pointers (slow and fast). If there’s a cycle, the fast pointer will eventually meet the slow pointer.&lt;/li&gt;
&lt;li&gt;Example:
Input: 1 -&amp;gt; 2 -&amp;gt; 3 -&amp;gt; 4 -&amp;gt; 2 (cycle)
Output: True (cycle exists)&lt;/li&gt;
&lt;li&gt;Approach: Use Floyd’s Cycle Detection algorithm. Move the fast pointer two steps and the slow pointer one step. If they meet, there’s a cycle.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devops</category>
      <category>dsa</category>
      <category>interview</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Most Asked DSA Interview Questions</title>
      <dc:creator>Notarena</dc:creator>
      <pubDate>Sun, 20 Oct 2024 04:29:49 +0000</pubDate>
      <link>https://dev.to/notarena/most-asked-dsa-interview-questions-586f</link>
      <guid>https://dev.to/notarena/most-asked-dsa-interview-questions-586f</guid>
      <description>&lt;p&gt;Q: How do you detect a cycle in a linked list?&lt;/p&gt;

&lt;p&gt;A: To detect a cycle in a linked list, you can use Floyd's Cycle Detection Algorithm, also known as the Tortoise and Hare &lt;a href="https://notarena.com/" rel="noopener noreferrer"&gt;Algorithm&lt;/a&gt;. In this approach, two pointers (slow and fast) traverse the list. The slow pointer moves one step at a time, while the fast pointer moves two steps. If the linked list contains a cycle, the two pointers will eventually meet; otherwise, the fast pointer will reach the end of the list.&lt;/p&gt;

&lt;p&gt;This algorithm runs in O(n) time complexity and uses O(1) space.&lt;/p&gt;

</description>
      <category>java</category>
      <category>dsa</category>
      <category>help</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Create Toggle Button in HTML CSS &amp; JavaScript</title>
      <dc:creator>Notarena</dc:creator>
      <pubDate>Thu, 17 Oct 2024 00:17:41 +0000</pubDate>
      <link>https://dev.to/notarena/create-toggle-button-in-html-css-javascript-2l2c</link>
      <guid>https://dev.to/notarena/create-toggle-button-in-html-css-javascript-2l2c</guid>
      <description>&lt;p&gt;This article was originally published at &lt;br&gt;
&lt;a href="https://notarena.com/" rel="noopener noreferrer"&gt;https://notarena.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This code creates an Animated toggle button that switches between light and dark mode by adding or removing the ‘dark’ class on the body element. The toggle button has a circle that smoothly transitions to indicate the mode, and the background of the body also smoothly transitions for a seamless experience.&lt;/p&gt;

&lt;p&gt;I am using morphism effects, the button and background have a beautiful transition that adds a touch of elegance to the toggle switch. This type of toggle button can be used in various websites or applications, especially those that may require a light and dark mode for better accessibility or just a different design option for the user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You Might Like This&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://notarena.com/code-library/share-button-animation-using-html-css/" rel="noopener noreferrer"&gt;Share Button Animation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://notarena.com/code-library/custom-radio-buttons-in-html-css/" rel="noopener noreferrer"&gt;Custom Radio Buttons&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To create a toggle button using HTML, CSS, and JavaScript, you need to make two files: one HTML file and one CSS file. After you create these files, you can copy and paste the provided code into them. You can also copy all the source code.&lt;/p&gt;

&lt;p&gt;Create Toggle Button in HTML CSS &amp;amp; JavaScript&lt;br&gt;
Create a Folder: Start by creating a folder for your project. You can name it anything you like. Inside this folder, you’ll need to create the following files:&lt;/p&gt;

&lt;p&gt;index.html (for the structure of your Create Toggle Button)&lt;br&gt;
style.css (for styling the Create Toggle Button)&lt;br&gt;
Create the HTML File:&lt;/p&gt;

&lt;p&gt;Name your HTML file index.html.&lt;br&gt;
Create the CSS File:&lt;/p&gt;

&lt;p&gt;Name your CSS file style.css.&lt;br&gt;
Create the JavaScript File:&lt;/p&gt;

&lt;p&gt;Name your JavaScript file script.js.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>html</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
