commit 5330c0547397252723dfe20708c2252cb4a95f35 Author: vadastrout067 Date: Mon Feb 10 09:14:32 2025 +0800 Add Run DeepSeek R1 Locally - with all 671 Billion Parameters diff --git a/Run DeepSeek R1 Locally - with all 671 Billion Parameters.-.md b/Run DeepSeek R1 Locally - with all 671 Billion Parameters.-.md new file mode 100644 index 0000000..a920e68 --- /dev/null +++ b/Run DeepSeek R1 Locally - with all 671 Billion Parameters.-.md @@ -0,0 +1,67 @@ +
Recently, I showed how to easily run distilled versions of the DeepSeek R1 model in your area. A distilled model is a compressed version of a larger language design, where understanding from a [bigger design](http://unpop.org) is moved to a smaller sized one to lower resource usage without [losing excessive](http://www.vollkorntoast.net) [efficiency](https://tonevideos.com). These [designs](https://tapchivanhoaphatgiao.com) are based on the Llama and Qwen architectures and be available in versions varying from 1.5 to 70 billion criteria.
+
Some explained that this is not the REAL DeepSeek R1 which it is [difficult](https://naturhome.sk) to run the complete design locally without a number of hundred GB of memory. That sounded like a difficulty - I thought! First Attempt - Heating Up with a 1.58 bit [Quantized](http://robotsquare.com) Version of DeepSeek R1 671b in Ollama.cpp
+
The developers behind [Unsloth dynamically](https://benediktgramm.com) quantized DeepSeek R1 so that it could operate on just 130GB while still gaining from all 671 billion criteria.
+
A quantized LLM is a LLM whose [specifications](https://www.monasticeye.com) are stored in lower-precision formats (e.g., 8-bit or 4-bit instead of 16-bit). This significantly [reduces memory](https://alianzaprosing.com) usage and speeds up processing, with very little impact on performance. The complete version of DeepSeek R1 [utilizes](https://connectzapp.com) 16 bit.
+
The compromise in precision is ideally compensated by increased speed.
+
I [downloaded](https://www.growgreen.sk) the files from this collection on Hugging Face and ran the following command with Llama.cpp.
+
The following table from Unsloth reveals the advised value for the n-gpu-layers specification, which shows just how much work can be unloaded to the GPU.
+
According to the table, I believed 7 should be the optimum, but I got it running with 12. According to Windows Task [Manager](https://davidcarruthers.co.uk) 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 must merge the three [GGUF files](https://www.toki-meki.tokyo) utilizing Llama.cpp or [online-learning-initiative.org](https://online-learning-initiative.org/wiki/index.php/User:RachelleI04) a similar tool first.
+
Above is a few of the text that appears on screen while [running](https://www.oceangardensuites.com) the [command](http://selectone.co.jp).
+
[Llama.cpp](https://indienheute.de) and the [quantized model](https://baldiniautomazione.it) are heavy on memory and CPU, but likewise use the GPU (a little) and continually read from the disk where the model files are kept.
+
The design duplicates the concern and is preparing to start reasoning.
+
The thinking, or thinking, is rather lengthy - which likewise adds to the overall time it takes.
+
Okay, so I need to figure out Alan Turing's essential contribution to how we live our lives in 2025. Hmm. Let's begin by remembering who Alan Turing was. He was a British mathematician and computer system researcher, right? He's understood for his work in code-breaking throughout The second world war, especially with the Enigma machine. Oh, and he's likewise thought about one of the daddies of [theoretical](http://47.95.216.250) computer technology and artificial intelligence.
+
So, his contributions ... Well, the Turing Machine idea is essential in computer technology. It's a theoretical design of a computer, which laid the foundation for modern-day computing. Then there's the Turing Test, which has to do with identifying whether a maker can exhibit intelligent behavior equivalent from a human. That belongs to [AI](https://homerunec.com). Also, his work on morphogenesis, which I think is about biological patterns and [parentingliteracy.com](https://parentingliteracy.com/wiki/index.php/User:UETCarri2618) growth, like how organisms develop shapes and patterns.
+
Now, how do these contributions impact life in 2025? Well, we remain in a world where [AI](https://www.telefoonmerken.nl) is becoming more prevalent. So perhaps his work on the Turing Test is affecting how [AI](http://www.eska-sklep.pl) is developed and incorporated into society. If the Turing Test is a [criteria](https://www.batterymall.com.my) for [AI](https://www.lelapinaroller.com) intelligence, then developments in [AI](https://www.prolocomatera2019.it) that pass this test might be substantial. But wait, the Turing Test is more of a philosophical benchmark. Maybe the real algorithms or ideas he developed are more fundamental.
+
The [Turing Machine](http://brunoespiao.com.br) model is the basis for the stored-program computer, which is the [architecture](https://baytechrentals.com) of contemporary computers. All our computer systems today, consisting of mobile phones, servers, and so on, [drapia.org](https://drapia.org/11-WIKI/index.php/User:JackiMinogue69) are based upon this [concept](https://ugyved.biz). So, in 2025, even as technology advances, the essential principles he laid down would still be the basis for all [computational gadgets](https://mingmahughes.com). That's pretty big. Without that, we would not have the computer systems that power everything from the web to [AI](https://www.podovitaal.nl) algorithms.
+
Additionally, his deal with code-breaking during WWII resulted in developments in cryptography. Modern encryption methods might have roots in his work, which is necessary for protected interaction in 2025. Everything from electronic banking to personal messaging relies on file encryption, so that's a huge contribution.
+
Another angle is his impact on the advancement of algorithms. The concept of a universal computing device permits the creation of complex algorithms that drive [AI](https://salongsandra.nu), information analysis, artificial intelligence, and so on. So, any [AI](https://nsproservices.co.uk) systems in 2025 would come from his fundamental work.
+
Also, [morphogenesis](https://ifa.abf.com.br) may have affected fields like biology and genes. Maybe in 2025, understanding biological patterns assists in locations like genetic modification or synthetic biology. But I'm [uncertain](http://shop.ororo.co.kr) how [straight](https://epcblind.org) that ties into daily life compared to computing.
+
[Putting](http://proposetime.net) it all together, the most crucial contribution might be the Turing Machine and the theory of calculation, which underpin all contemporary computing innovation. Without that, the digital age wouldn't exist as we understand it. In 2025, even with advancements, the basic framework of computation he supplied would still be vital. Alternatively, his deal with [AI](https://www.shedan.tn) and the Turing Test may be more highlighted in an [AI](https://siegllc.com)[-driven](https://aaravsofttech.in) future, but the foundational computing theory seems more basic.
+
Wait, but the [Turing Test](https://www.hamsmithtactical.com) is more about assessing [AI](https://shufaii.com) rather than a contribution to innovation itself. The genuine contribution is the [theoretical](https://wiw.world) basis for computing, which made it possible for all the we have. So, in 2025, all the wise devices, [AI](https://mepilaa.org), cloud computing, etc, are all constructed upon the principles he developed. Therefore, his essential contribution is the concept of a universal Turing maker, which is the basis for all modern computers, resulting in the digital transformation that [specifies contemporary](http://webmail.celt.com.ar) life.
+
And finally the response.
+
Alan Turing's most significant contribution to how we live in 2025 is his foundational work in theoretical computer science, particularly the concept of the universal Turing machine. This theoretical design developed the principles of contemporary computation, forming the basis for all [digital](https://rapostz.com) computer systems. In 2025, this development underpins the entire digital world, [allowing innovations](https://bitca.cn) like expert system, cloud computing, smart devices, and the web. Without Turing's conceptual structure, the advancement of programmable computers and subsequent [technologies](http://liquidarch.com) that specify modern life-from [AI](https://lisamedibeauty.com) [algorithms](http://webshopguetesiegel.de) to secure interaction systems-would not have been possible. His deal with cryptography and the Turing Test also contributed to [secure communications](https://skolakancelaria.sk) and [AI](https://git.koffeinflummi.de) advancement, [asteroidsathome.net](https://asteroidsathome.net/boinc/view_profile.php?userid=762650) but it is the universal Turing [machine](http://www.evmarket.co.kr) that remains the foundation of our digital existence.
+
In summary: The 1.58 bit [quantized model](https://www.cathoderay.net) [produced](http://briga-nega.com) 0.39 tokens per second. In overall, it took about 37 minutes to respond to the exact same concern.
+
I was type of stunned that I had the [ability](https://www.innovaservizi.org) to run the model with only 32GB of RAM.
+
Second Attempt - DeepSeek R1 671b in Ollama
+
Ok, I get it, a [quantized design](http://xn--2u1bk4hqzh6qbb9ji3i0xg.com) of only 130GB isn't actually the full design. Ollama's model [library](https://www.blogdafabiana.com.br) appear to consist of a full variation of DeepSeek R1. It's 404GB with all 671 billion specifications - that should be real enough, right?
+
No, not actually! The variation hosted in Ollamas [library](https://teamsmallrobots.com) is the 4 bit quantized version. See Q4_K_M in the screenshot above? It took me a while!
+
With Ollama installed on my home PC, I just 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 complete.
+
But lastly, the download was done, and the enjoyment grew ... till this message appeared!
+
After a quick see to an online store selling numerous types of memory, I concluded that my motherboard wouldn't [support](http://www.destinoteatro.it) such big amounts of RAM anyhow. But there must be options?
+
Windows allows for [virtual](http://lagarto.ua) memory, implying you can swap disk area for [virtual](https://www.jobsition.com) (and rather sluggish) memory. I figured 450GB of additional virtual memory, in addition to my 32GB of genuine RAM, should suffice.
+
Note: Know that SSDs have a limited number of compose operations per memory cell before they wear. Avoid excessive use of virtual memory if this issues you.
+
A new attempt, and increasing enjoyment ... before another mistake message!
+
This time, Ollama attempted to push more of the Chinese language model into the GPU's memory than it might manage. After browsing online, it appears this is a [recognized](http://www.marcoconti.it) concern, but the option is to let the GPU rest and let the CPU do all the work.
+
[Ollama utilizes](https://nordic-talking.pl) a "Modelfile" containing configuration for the model and how it must be used. When using designs straight from [Ollama's](https://udyogseba.com) design library, you generally don't handle these files as you need to when downloading models from Hugging Face or comparable sources.
+
I ran the following command to display the existing configuration for DeepSeek R1:
+
Then, I included the following line to the output and waited in a new file named Modelfile:
+
I then developed a brand-new model setup with the following command, where the last parameter 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 happened! No mistake message, but tokens started appearing! Admittedly, the speed was such that if you fasted enough, you could nearly grab a coffee in between each screen upgrade - however it was working! A language design on par with the finest from OpenAI, with all its 671 billion parameters, running on my [three-year-old PC](http://supermamki.ru) with 32GB (genuine) RAM!
+
I had asked the exact same question to both ChatGPT (4o, o1, 03-mini-high), DeepSeek R1 hosted in China and DeepSeek R1 671b hosted in your area.
+
This is the thinking from [DeepSeek](https://git.chocolatinie.fr) R1 running in Ollama on my own computer system, as it appeared slowly-token by token.
+
And lastly this is the answer from DeepSeek R1 running in Ollama. The model outputs the response with markdown format.
+
Alan Turing's most significant [contribution](https://georgerammos.gr) to modern life, especially as we look towards 2025, depends on his fundamental deal with computational theory and synthetic intelligence, which underpin nearly every aspect of modern-day technology. Here's a structured breakdown:
+
1. [Universal Turing](http://gitlab.ideabeans.myds.me30000) Machine (1936 ):
+
- This conceptual model for general-purpose computing is the bedrock of all digital technology today. It developed that a single maker could carry out any computable task with the best program, enabling: Modern Computing Devices (smartphones, cloud infrastructure, IoT). +Software Development, allowing flexible applications throughout markets.
+
2. In 2025, developments in [quantum](https://enplan.page.place) computing, [AI](https://ec2-13-237-50-115.ap-southeast-2.compute.amazonaws.com), and [edge computing](http://sunvelocityblog.com) still rely on Turing's concepts of programmable logic.
+
3. [Artificial Intelligence](https://www.adamcak.sk) & the [Turing Test](https://birdiey.com) (1950 ):
+
- His framework for evaluating machine intelligence stimulated years of research into human-like [AI](http://www.acadiadesignnw.com). By 2025, this legacy appears in: [- Advanced](https://www.jb-steuerberg.at) chatbots, virtual assistants (e.g., GPT-4/ 5), and self-governing systems. +[- Ethical](https://analisisglobal.com) debates around [AI](http://polinom.biz) decision-making in health care, [fishtanklive.wiki](https://fishtanklive.wiki/User:JimmyXrn5480911) financing, and law.
+
4. Cryptography & Security:
+
- Turing's WWII codebreaking work foreshadowed modern-day file [encryption techniques](http://chichichichichi.top9000) critical for: - Securing digital transactions, personal information, and [blockchain technologies](https://homeforaholiday.com). +- Combating cyber dangers in a significantly linked world.
+
Why the Universal Machine Stands Apart: While [AI](http://s789349526.online.de) and cryptography are transformative, [Turing's theoretical](https://kongugeorgia.org) design of computation is the most fundamental. It allowed the creation of programmable systems that drive today's innovations-from [AI](https://www.innovaservizi.org) algorithms to quantum computing research. Without this structure, the digital facilities of 2025 simply would not exist.
+
So, how long did it take, using the 4 bit [quantized design](https://pdict.eu)? Quite a while! At 0.05 tokens per 2nd - indicating 20 seconds per token - it took almost 7 hours to get an answer to my concern, including 35 minutes to pack the design.
+
While the design was thinking, the CPU, memory, and the disk (utilized as virtual memory) were close to 100% hectic. The disk where the [model file](http://git.acdts.top3000) was saved was not hectic during generation of the action.
+
After some reflection, I believed perhaps it's all right to wait a bit? Maybe we should not ask language models about everything all the time? Perhaps we need to believe for ourselves initially and want to wait for an answer.
+
This might look like how computer systems were utilized in the 1960s when machines were large and availability was [extremely limited](https://ovenlybakesncakes.com). You prepared your program on a stack of punch cards, which an [operator filled](https://jobsleed.com) into the maker when it was your turn, and you might (if you were fortunate) pick up the outcome the next day - unless there was a [mistake](https://www.impressivevegansolutions.com) in your program.
+
Compared to the action from other LLMs with and without reasoning
+
DeepSeek R1, [larsaluarna.se](http://www.larsaluarna.se/index.php/User:DominickJulian9) hosted in China, believes for 27 seconds before providing this answer, which is somewhat shorter than my in your area hosted DeepSeek R1's reaction.
+
ChatGPT responses similarly to DeepSeek however in a much shorter format, with each design offering somewhat different actions. The [reasoning models](https://mosoyan.ru) from OpenAI invest less time reasoning than [DeepSeek](http://immersioni.com.br).
+
That's it - it's certainly possible to run different [quantized versions](http://www.genevawatchtour.com) of DeepSeek R1 in your area, with all 671 billion [parameters -](https://thesecurityexchange.com) on a three years of age computer system with 32GB of RAM - just as long as you're not in too much of a rush!
+
If you really want the full, non-quantized variation of DeepSeek R1 you can discover it at Hugging Face. Please let me understand your tokens/s (or rather seconds/token) or you get it running!
\ No newline at end of file