Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
W
wushu-dom
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • Nadia Oberg
  • wushu-dom
  • Issues
  • #1

Closed
Open
Opened 3 months ago by Nadia Oberg@nadiaoberg982
  • Report abuse
  • New issue
Report abuse New issue

Run DeepSeek R1 Locally - with all 671 Billion Parameters


Recently, I showed how to easily run distilled variations of the DeepSeek R1 design locally. A distilled model is a compressed variation of a bigger language design, where knowledge from a bigger model is transferred to a smaller sized one to minimize resource use without losing too much efficiency. These models are based upon the Llama and Qwen architectures and be available in variations varying from 1.5 to 70 billion parameters.

Some explained that this is not the REAL DeepSeek R1 and that it is difficult to run the complete design locally without numerous hundred GB of memory. That sounded like a difficulty - I believed! First Attempt - Heating Up with a 1.58 bit Quantized Version of DeepSeek R1 671b in Ollama.cpp

The designers behind Unsloth dynamically quantized DeepSeek R1 so that it could run on as little as 130GB while still gaining from all 671 billion criteria.

A quantized LLM is a LLM whose parameters are kept in lower-precision formats (e.g., 8-bit or 4-bit instead of 16-bit). This considerably minimizes memory use and speeds up processing, with minimal effect on performance. The complete variation of DeepSeek R1 uses 16 bit.

The compromise in precision is hopefully compensated by increased speed.

I downloaded the files from this collection on Hugging Face and ran the following command with Llama.cpp.

The following table from Unsloth shows the suggested value for the n-gpu-layers parameter, which indicates just how much work can be offloaded to the GPU.

According to the table, I believed 7 should be the optimum, however I got it keeping up 12. According to Windows Task Manager my GPU has 40 GB of memory, and not 24 as I believed. So then it builds up (7/ 24 * 40 ≈ 12).

If you choose to run the model straight with Ollama, you should combine the 3 GGUF files using Llama.cpp or a similar tool initially.

Above is some of the text that appears on screen while running the command.

Llama.cpp and the are heavy on memory and CPU, however likewise utilize the GPU (a little) and constantly read from the disk where the model files are kept.

The model duplicates the question and is preparing to begin thinking.

The thinking, or thinking, is quite lengthy - which likewise contributes to the general time it takes.

Okay, so I require to figure out Alan Turing's essential contribution to how we live our lives in 2025. Hmm. Let's start by remembering who Alan Turing was. He was a British mathematician and computer scientist, right? He's known for his operate in code-breaking throughout The second world war, particularly with the Enigma machine. Oh, and he's likewise considered among the dads of theoretical computer technology and synthetic intelligence.

So, his contributions ... Well, the Turing Machine principle is fundamental in computer technology. It's a theoretical design of a computer system, which laid the foundation for modern-day computing. Then there's the Turing Test, which has to do with determining whether a maker can exhibit smart habits identical from a human. That's associated to AI. Also, his work on morphogenesis, which I believe is about biological patterns and development, like how organisms develop shapes and patterns.

Now, how do these contributions affect life in 2025? Well, we remain in a world where AI is becoming more prevalent. So perhaps his work on the Turing Test is influencing how AI is developed and integrated into society. If the Turing Test is a benchmark for AI intelligence, then improvements in AI that pass this test may be substantial. But wait, the Turing Test is more of a philosophical benchmark. Maybe the real algorithms or principles he established are more foundational.

The Turing Machine model is the basis for the stored-program computer, which is the architecture of modern-day computers. All our computer systems today, including mobile phones, servers, and so on, are based on this principle. So, in 2025, even as innovation advances, the fundamental concepts he laid down would still be the basis for all computational gadgets. That's quite huge. Without that, we would not have the computers that power everything from the web to AI algorithms.

Additionally, equipifieds.com his work on code-breaking throughout WWII led to advancements in cryptography. Modern file encryption methods may have roots in his work, which is necessary for safe communication in 2025. Everything from electronic banking to personal messaging depends on file encryption, so that's a huge contribution.

Another angle is his influence on the advancement of algorithms. The principle of a universal computing machine permits the creation of complex algorithms that drive AI, information analysis, artificial intelligence, etc. So, any AI systems in 2025 would stem from his fundamental work.

Also, morphogenesis might have affected fields like biology and genes. Maybe in 2025, comprehending biological patterns helps in areas like genetic modification or artificial biology. But I'm uncertain how straight that ties into daily life compared to computing.

Putting everything together, the most crucial contribution might be the Turing Machine and valetinowiki.racing the theory of calculation, which underpin all modern-day computing innovation. Without that, the digital age wouldn't exist as we understand it. In 2025, even with developments, the standard structure of calculation he provided would still be essential. Alternatively, his work on AI and the Turing Test might be more highlighted in an AI-driven future, however the foundational computing theory seems more essential.

Wait, however the Turing Test is more about examining AI instead of a contribution to technology itself. The real contribution is the theoretical basis for computing, which made it possible for all the digital tech we have. So, in 2025, all the smart gadgets, AI, cloud computing, etc, are all built on the concepts he established. Therefore, his crucial contribution is the concept of a universal Turing machine, which is the basis for all modern computer systems, resulting in the digital transformation that specifies modern life.

And lastly the answer.

Alan Turing's most considerable contribution to how we live in 2025 is his foundational operate in theoretical computer technology, especially the idea of the universal Turing device. This theoretical model developed the principles of modern-day calculation, forming the basis for all digital computers. In 2025, hb9lc.org this innovation underpins the whole digital world, allowing innovations like synthetic intelligence, cloud computing, smart devices, and the web. Without Turing's conceptual framework, the advancement of programmable computers and subsequent innovations that define modern life-from AI algorithms to secure communication systems-would not have been possible. His deal with cryptography and the Turing Test likewise contributed to secure communications and AI advancement, however it is the universal Turing device that remains the foundation of our digital presence.

In summary: The 1.58 bit quantized design produced 0.39 tokens per second. In total, it took about 37 minutes to respond to the very same question.

I was kind of surprised that I was able to run the design with only 32GB of RAM.

Second Attempt - DeepSeek R1 671b in Ollama

Ok, I get it, a quantized model of just 130GB isn't truly the complete design. Ollama's design library appear to consist of a complete version of DeepSeek R1. It's 404GB with all 671 billion criteria - that should be genuine enough, right?

No, not actually! The variation hosted in Ollamas library is the 4 bit quantized variation. See Q4_K_M in the screenshot above? It took me a while!

With Ollama set up on my home PC, I simply required to clear 404GB of disk space and run the following command while grabbing a cup of coffee:

Okay, it took more than one coffee before the download was total.

But finally, the download was done, and the excitement grew ... until this message appeared!

After a fast visit to an online store selling different types of memory, I concluded that my motherboard wouldn't support such large quantities of RAM anyhow. But there must be alternatives?

Windows enables virtual memory, suggesting you can swap disk area for virtual (and rather slow) memory. I figured 450GB of extra virtual memory, in addition to my 32GB of real RAM, must suffice.

Note: Understand that SSDs have a restricted variety of write operations per memory cell before they break. Avoid extreme use of virtual memory if this concerns you.

A brand-new attempt, and increasing excitement ... before another error message!

This time, Ollama tried to press more of the Chinese language design into the GPU's memory than it could manage. After browsing online, it seems this is a known problem, however the service is to let the GPU rest and let the CPU do all the work.

Ollama utilizes a "Modelfile" containing setup for the model and how it must be used. When utilizing designs straight from Ollama's design library, you normally do not deal with these files as you should when downloading designs from Hugging Face or similar sources.

I ran the following command to display the existing setup for DeepSeek R1:

Then, I included the following line to the output and waited in a brand-new file named Modelfile:

I then developed a new design configuration with the following command, where the last specification is my name for the model, which now runs entirely without GPU use:

Once again, the excitement grew as I nervously typed the following command:

Suddenly, it occurred! No error message, but tokens began appearing! Admittedly, the speed was such that if you fasted enough, you could practically grab a coffee in between each screen upgrade - but it was working! A language model on par with the very best from OpenAI, with all its 671 billion parameters, operating on my three-year-old PC with 32GB (real) RAM!

I had actually asked the very same concern to both ChatGPT (4o, o1, 03-mini-high), DeepSeek R1 hosted in China and DeepSeek R1 671b hosted in your area.

This is the reasoning from DeepSeek R1 running in Ollama on my own computer, as it appeared slowly-token by token.

And lastly this is the response from DeepSeek R1 running in Ollama. The model outputs the answer with markdown format.

Alan Turing's most significant contribution to contemporary life, particularly as we look toward 2025, lies in his foundational deal with computational theory and synthetic intelligence, which underpin almost every aspect of contemporary technology. Here's a structured breakdown:

1. Universal Turing Machine (1936 ):

- This conceptual model for general-purpose computing is the bedrock of all digital technology today. It established that a single maker could perform any computable task with the ideal program, making it possible for: Modern Computing Devices (mobile phones, cloud infrastructure, IoT). Software Development, allowing flexible applications across markets.

2. In 2025, improvements in quantum computing, AI, and edge computing still count on Turing's concepts of programmable reasoning.

3. Artificial Intelligence & the Turing Test (1950 ):

- His framework for examining maker intelligence stimulated years of research study into human-like AI. By 2025, this legacy is evident in: - Advanced chatbots, virtual assistants (e.g., GPT-4/ 5), asteroidsathome.net and self-governing systems.

  • Ethical disputes around AI decision-making in healthcare, finance, and law.

    4. Cryptography & Security:

    - Turing's WWII codebreaking work foreshadowed modern encryption strategies crucial for: - Securing digital transactions, wiki.rrtn.org individual information, and blockchain technologies.
  • Combating cyber hazards in a progressively linked world.

    Why the Universal Machine Stands Out: While AI and cryptography are transformative, Turing's theoretical model of computation is the most fundamental. It enabled the production of programmable systems that drive today's innovations-from AI algorithms to quantum computing research. Without this structure, the digital infrastructure of 2025 merely would not exist.

    So, how long did it take, using the 4 bit quantized model? Quite a while! At 0.05 tokens per second - suggesting 20 seconds per token - it took almost seven hours to get a response to my concern, including 35 minutes to load the design.

    While the model was thinking, the CPU, memory, and the disk (utilized as virtual memory) were close to 100% hectic. The disk where the model file was saved was not busy throughout generation of the action.

    After some reflection, I thought perhaps it's fine to wait a bit? Maybe we should not ask language designs about everything all the time? Perhaps we should believe for ourselves first and be willing to wait for a response.

    This might look like how computer systems were used in the 1960s when devices were big and availability was very limited. You prepared your program on a stack of punch cards, which an operator loaded into the machine when it was your turn, and disgaeawiki.info you might (if you were lucky) get the result the next day - unless there was an error in your program.

    Compared to the response from other LLMs with and without reasoning

    DeepSeek R1, hosted in China, thinks for 27 seconds before offering this response, which is slightly much shorter than my locally hosted DeepSeek R1's reaction.

    ChatGPT responses similarly to DeepSeek but in a much shorter format, with each model providing slightly various reactions. The reasoning models from OpenAI invest less time reasoning than DeepSeek.

    That's it - it's certainly possible to run various quantized versions of DeepSeek R1 in your area, with all 671 billion criteria - on a three year old computer with 32GB of RAM - simply as long as you're not in excessive of a rush!

    If you really want the full, non-quantized version of DeepSeek R1 you can discover it at Hugging Face. Please let me know your tokens/s (or rather seconds/token) or you get it running!

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • Discussion 0
  • Designs
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
None
Milestone
None
Assign milestone
None
Time tracking
No estimate or time spent
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Confidentiality
Not confidential
Lock issue
Unlocked
participants
Reference: nadiaoberg982/wushu-dom#1