Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
L
lotorpsmassage
  • 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
  • Gladis Soliz
  • lotorpsmassage
  • Issues
  • #1

Closed
Open
Opened Feb 10, 2025 by Gladis Soliz@gladissoliz767
  • Report abuse
  • New issue
Report abuse New issue

Run DeepSeek R1 Locally - with all 671 Billion Parameters


Last week, I revealed how to easily run distilled variations of the DeepSeek R1 model in your area. A distilled model is a compressed variation of a bigger language design, where understanding from a larger model is transferred to a smaller sized one to minimize resource use without losing too much performance. These designs are based upon the Llama and Qwen architectures and be available in variants varying from 1.5 to 70 billion specifications.

Some explained that this is not the REAL DeepSeek R1 which it is impossible to run the complete model in your area without a number of hundred GB of memory. That sounded like an obstacle - I thought! First Attempt - Warming up with a 1.58 bit Quantized Version of DeepSeek R1 671b in Ollama.cpp

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

A quantized LLM is a LLM whose criteria are kept in lower-precision formats (e.g., 8-bit or 4-bit rather of 16-bit). This considerably reduces memory usage and accelerates processing, with minimal impact on performance. The full variation of DeepSeek R1 uses 16 bit.

The trade-off in accuracy 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 advised worth for the n-gpu-layers parameter, which indicates how much work can be unloaded to the GPU.

According to the table, I believed 7 need to 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 thought. So then it builds up (7/ 24 * 40 ≈ 12).

If you choose to run the model straight with Ollama, you must merge the 3 GGUF files using Llama.cpp or a comparable tool initially.

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

Llama.cpp and the quantized design are heavy on memory and CPU, but likewise utilize the GPU (a little) and continually check out from the disk where the design files are kept.

The model duplicates the question and is getting all set to start reasoning.

The reasoning, or thinking, is rather lengthy - which also contributes to the overall time it takes.

Okay, so I need to determine Alan Turing's crucial 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 system scientist, right? He's known for his work in code-breaking throughout The second world war, especially with the Enigma device. Oh, and he's likewise considered among the fathers of theoretical computer system science and synthetic intelligence.

So, his contributions ... Well, the Turing Machine idea is fundamental in computer technology. It's a theoretical design of a computer system, which laid the groundwork for contemporary computing. Then there's the Turing Test, which has to do with identifying whether a device can show intelligent behavior indistinguishable from a human. That relates to AI. Also, his work on morphogenesis, which I believe has to do with 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 common. So possibly his work on the Turing Test is affecting how AI is developed and integrated into society. If the Turing Test is a standard for AI intelligence, then advancements in AI that pass this test might be substantial. But wait, the Turing Test is more of a philosophical criteria. Maybe the actual algorithms or concepts he established are more foundational.

The Turing Machine design is the basis for the stored-program computer system, which is the architecture of modern-day computer systems. All our computer systems today, consisting of mobile phones, servers, etc, are based on this concept. So, in 2025, even as innovation advances, the basic principles he laid down would still be the basis for all computational devices. That's quite big. Without that, we would not have the computer systems that power everything from the internet to AI algorithms.

Additionally, his deal with code-breaking during WWII caused improvements in cryptography. Modern encryption techniques may have roots in his work, which is essential for protected communication in 2025. Everything from online banking to private messaging depends on encryption, so that's a big contribution.

Another angle is his influence on the development of algorithms. The idea of a universal computing machine enables the production of complicated algorithms that drive AI, information analysis, artificial intelligence, and so on. So, any AI systems in 2025 would come from his fundamental work.

Also, morphogenesis might have influenced fields like biology and genetics. Maybe in 2025, understanding biological patterns helps in locations 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 essential contribution may be the Turing Machine and pipewiki.org the theory of computation, which underpin all modern computing technology. Without that, the digital age would not exist as we understand it. In 2025, even with advancements, the basic framework of computation he provided would still be necessary. Alternatively, his work on AI and the Turing Test may be more highlighted in an AI-driven future, however the fundamental computing theory seems more essential.

Wait, but the Turing Test is more about examining AI instead of a contribution to innovation itself. The genuine contribution is the theoretical basis for computing, which enabled all the digital tech we have. So, in 2025, all the clever devices, AI, cloud computing, and so on, are all built on the principles he established. Therefore, his most essential contribution is the idea of a universal Turing machine, which is the basis for all contemporary computers, resulting in the digital transformation that defines contemporary life.

And lastly the answer.

Alan Turing's most considerable contribution to how we live in 2025 is his fundamental work in theoretical computer technology, particularly the idea of the universal Turing machine. This theoretical model established the principles of modern-day computation, forming the basis for all digital computers. In 2025, this development underpins the whole digital world, making it possible for technologies like synthetic intelligence, cloud computing, mobile phones, and the internet. Without Turing's conceptual structure, the development of programmable computer systems and subsequent innovations that define modern life-from AI algorithms to protect interaction systems-would not have been possible. His work on cryptography and the Turing Test also added to secure interactions and AI development, however it is the universal Turing machine that remains the cornerstone of our digital presence.

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

I was type of shocked that I was able to run the model with only 32GB of RAM.

Second Attempt - DeepSeek R1 671b in Ollama

Ok, I get it, a quantized design of only 130GB isn't actually the full design. Ollama's model library seem to include a complete variation of DeepSeek R1. It's 404GB with all 671 billion criteria - that should be real enough, right?

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

With Ollama set up on my home PC, I just needed to clear 404GB of disk area and run the following command while getting a cup of coffee:

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

But finally, the download was done, and the enjoyment grew ... till this message appeared!

After a quick visit to an online shop selling different kinds of memory, I concluded that my motherboard would not support such large amounts of RAM anyway. But there must be alternatives?

Windows permits for virtual memory, meaning you can switch disk space for virtual (and rather slow) memory. I figured 450GB of additional virtual memory, in addition to my 32GB of real RAM, need to be enough.

Note: Understand that SSDs have a restricted number of write operations per memory cell before they use out. Avoid excessive use of virtual memory if this issues you.

A new attempt, and rising enjoyment ... before another error message!

This time, Ollama tried to push more of the Chinese language design into the GPU's memory than it could manage. After searching online, it appears this is a recognized concern, however the solution is to let the GPU rest and let the CPU do all the work.

Ollama utilizes a "Modelfile" containing configuration for the design and how it need to be utilized. When utilizing models straight from Ollama's design library, you usually do not handle these files as you should when downloading models from Hugging Face or comparable sources.

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

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

I then created a brand-new model setup with the following command, where the last criterion is my name for the model, which now runs totally without GPU use:

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

Suddenly, it happened! No mistake message, but tokens began appearing! Admittedly, the speed was such that if you were quick enough, you could practically get a coffee in between each screen update - however it was working! A language design on par with the very best from OpenAI, trade-britanica.trade with all its 671 billion specifications, working on my three-year-old PC with 32GB (genuine) RAM!

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

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 answer from DeepSeek R1 running in Ollama. The design outputs the response with markdown format.

Alan Turing's most considerable contribution to modern life, particularly as we look toward 2025, depends on his fundamental work on computational theory and expert system, which underpin nearly every element of contemporary innovation. Here's a structured breakdown:

1. Universal Turing Machine (1936 ):

- This conceptual design for general-purpose computing is the bedrock of all digital technology today. It developed that a single machine might carry out any computable job with the best program, allowing: Modern Computing Devices (smart devices, cloud facilities, IoT). Software Development, enabling flexible applications throughout industries.

2. In 2025, advancements in quantum computing, AI, and edge computing still rely on Turing's concepts of programmable .

3. Expert system & the Turing Test (1950 ):

- His structure for examining device intelligence spurred decades of research study into human-like AI. By 2025, this tradition is obvious in: - Advanced chatbots, virtual assistants (e.g., GPT-4/ 5), and self-governing systems.

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

    4. Cryptography & Security:

    - Turing's WWII codebreaking work foreshadowed modern file encryption strategies vital for: - Securing digital deals, individual information, and blockchain innovations. - Combating cyber hazards in a progressively connected world.

    Why the Universal Machine Stands Out: While AI and cryptography are transformative, Turing's theoretical design of calculation is the most essential. It enabled the creation of programmable systems that drive today's innovations-from AI algorithms to quantum computing research study. Without this foundation, the digital infrastructure of 2025 simply would not exist.

    So, swwwwiki.coresv.net how long did it take, utilizing the 4 bit quantized design? A long time! At 0.05 tokens per second - implying 20 seconds per token - it took almost seven hours to get an answer to my concern, including 35 minutes to fill the design.

    While the design was believing, the CPU, memory, and the disk (used as virtual memory) were close to 100% hectic. The disk where the design file was conserved was not hectic during generation of the reaction.

    After some reflection, I thought possibly it's okay to wait a bit? Maybe we should not ask language models about everything all the time? Perhaps we must think for ourselves initially and be prepared to wait for an answer.

    This may resemble how computer systems were utilized in the 1960s when machines were big and availability was very limited. You prepared your program on a stack of punch cards, which an operator filled into the device when it was your turn, and you could (if you were fortunate) choose up the outcome the next day - unless there was an error in your program.

    Compared with the reaction from other LLMs with and without reasoning

    DeepSeek R1, hosted in China, thinks for 27 seconds before supplying this answer, which is somewhat shorter than my locally hosted DeepSeek R1's response.

    ChatGPT answers similarly to DeepSeek but in a much shorter format, with each design providing somewhat various responses. The reasoning designs from OpenAI spend less time reasoning than DeepSeek.

    That's it - it's certainly possible to run different quantized variations of DeepSeek R1 locally, with all 671 billion parameters - on a three year old computer system with 32GB of RAM - simply as long as you're not in excessive of a rush!

    If you actually desire the complete, 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!
  • Discussion
  • Designs
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gladissoliz767/lotorpsmassage#1