Thicket data repository for the EEG
at main 5.1 kB view raw
1{ 2 "id": "https://www.tunbury.org/2025/03/12/deekseek-r1-on-raspberry-pi", 3 "title": "Deepseek R1 on a Raspberry Pi", 4 "link": "https://www.tunbury.org/2025/03/12/deekseek-r1-on-raspberry-pi/", 5 "updated": "2025-03-12T20:15:00", 6 "published": "2025-03-12T20:15:00", 7 "summary": "I’ve heard a lot about Deepseek and wanted to try it for myself.", 8 "content": "<p>I’ve heard a lot about Deepseek and wanted to try it for myself.</p>\n\n<p>Using a Raspberry Pi 5 with 8GB of RAM and an NVMe, I installed Ollama:</p>\n\n<div><div><pre><code>curl <span>-fsSL</span> https://ollama.com/install.sh | sh\n</code></pre></div></div>\n\n<p>Next, I downloaded the smallest Deepseek model</p>\n\n<div><div><pre><code>ollama pull deepseek-r1:1.5b\n</code></pre></div></div>\n\n<p>And ran it using:</p>\n\n<div><div><pre><code>ollama run deepseek-r1:1.5b\n</code></pre></div></div>\n\n<p>Things went downhill after that, as I couldn’t get a complete response.\nThe Pi would lock up with no output on the display:</p>\n\n<div><div><pre><code>$ ollama run deepseek-r1:1.5b\n&gt;&gt;&gt; what is the capital of england?\n&lt;think&gt;\nOkay, so I need to figure out whatclient_loop: send disconnect: Broken pipe\n</code></pre></div></div>\n\n<p>Switching from the Apple iPad charger I was using to an official Pi\npower supply resolved this problem.</p>\n\n<div><div><pre><code>$ ollama run deepseek-r1:1.5b\n&gt;&gt;&gt; what is the capital of england?\n&lt;think&gt;\n\n&lt;/think&gt;\n\nThe capital of England is London.\n\n&gt;&gt;&gt;\n</code></pre></div></div>\n\n<p>However, it’s not so good with a more niche question:</p>\n\n<div><div><pre><code>$ ollama run deepseek-r1:1.5b\n&gt;&gt;&gt; what is OCaml?\n&lt;think&gt;\n\n&lt;/think&gt;\n\nOCaml is a high-level, multi-paradigm programming language that combines\nfeatures from several other languages and frameworks. It was created by\nMartin Abadi, the founding father of Google, and has gained popularity\nin both academic research and industrial applications.\n\n...\n</code></pre></div></div>\n\n<p>How about an easier question?</p>\n\n<div><div><pre><code>$ ollama run deepseek-r1:1.5b\n&gt;&gt;&gt; Who invented the C programming language?\n&lt;think&gt;\nOkay, so I need to figure out who invented the C programming\nlanguage. Hmm, I remember that C is a high-level programming language\nused for system programming and embedded systems because it's efficient\nand portable. But I'm not sure about its origin.\n\nFirst, I'll think about other languages that are often mentioned\nbefore C. For example, C was developed by Dennis Ritchie in the late\n1960s. He wrote the header files, which made the language more readable\nand maintainable. He probably worked for Bell Labs since that's where\nDennis is associated.\n\nI wonder if there were any other contributors. Maybe someone else helped\ndevelop parts of the language before Ritchie did everything. But I don't\nrecall any major alternatives to C being widely used before it became\ndominant in certain areas like operating systems and embedded devices.\n\nSo, putting it all together, Dennis Ritchie is credited with inventing\nC. He created a lot of header files that made the language structured\nand easier to use, which helped it become very popular for its efficiency\nand portability.\n&lt;/think&gt;\n\nThe C programming language was invented by Dennis Ritchie, who worked at\nBell Labs in the late 1960s. His work led to the creation of significant\nheader files that enhanced readability and maintainability. Ritchie's\ncontributions made C a widely used language in areas like operating\nsystems and embedded systems.\n\n**Answer:**\n\nDennis Ritchie invented the C programming language. He worked at Bell Labs\n(now part of Tufts University) in the late 1960s, contributing to its\ndevelopment by creating essential header files that made the language\nmore readable and maintainable. His work led to a widely popularized\nlanguage used for system programming and embedded systems.\n\n**Step-by-Step Explanation:**\n\n1. **Identify the Problem:** The question is about the origin of C,\nan early high-level programming language.\n2. **Recall Other Languages Before C:** Mention languages like Pascal,\nAda, and Modula-2 that were around before C.\n3. **Consider Developers Known for C:** Dennis Ritchie stands out as a\nkey figure in C's development.\n4. **Details about Ritchie’s Contributions:** He worked at Bell Labs\n(now Tufts University) in the 1960s, creating header files to improve\nC's structure and readability.\n5. **Link to C Language Development:** This led to C becoming prominent\nfor system programming due to its efficiency and portability.\n\n**Conclusion:**\nDennis Ritchie is credited with inventing C by developing header files\nthat enhanced the language’s usability and structure.\n</code></pre></div></div>", 9 "content_type": "html", 10 "author": { 11 "name": "Mark Elvers", 12 "email": "mark.elvers@tunbury.org", 13 "uri": null 14 }, 15 "categories": [ 16 "raspberry-pi", 17 "tunbury.org" 18 ], 19 "source": "https://www.tunbury.org/atom.xml" 20}