Simon Willison's Weblog

commentaires · 158 Vues

That design was trained in part utilizing their unreleased R1 "thinking" design. Today they've launched R1 itself, in addition to a whole family of brand-new models obtained from that base.

That design was trained in part using their unreleased R1 "reasoning" model. Today they have actually launched R1 itself, in addition to a whole family of brand-new models obtained from that base.


There's a great deal of things in the brand-new release.


DeepSeek-R1-Zero appears to be the base model. It's over 650GB in size and, like the majority of their other releases, is under a tidy MIT license. DeepSeek alert that "DeepSeek-R1-Zero encounters challenges such as limitless repeating, bad readability, and language mixing." ... so they also released:


DeepSeek-R1-which "incorporates cold-start data before RL" and "attains efficiency comparable to OpenAI-o1 throughout mathematics, code, and reasoning tasks". That a person is also MIT licensed, classihub.in and is a comparable size.


I don't have the capability to run models larger than about 50GB (I have an M2 with 64GB of RAM), so neither of these 2 designs are something I can easily have fun with myself. That's where the new distilled models are available in.


To support the research study neighborhood, we have open-sourced DeepSeek-R1-Zero, DeepSeek-R1, forum.batman.gainedge.org and 6 dense designs distilled from DeepSeek-R1 based upon Llama and Qwen.


This is a fascinating flex! They have actually designs based upon Qwen 2.5 (14B, 32B, disgaeawiki.info Math 1.5 B and Math 7B) and Llama 3 (Llama-3.1 8B and Llama 3.3 70B Instruct).


Weirdly those Llama models have an MIT license attached, which I'm uncertain works with the underlying Llama license. Qwen designs are Apache certified so maybe MIT is OK?


(I likewise simply observed the MIT license files say "Copyright (c) 2023 DeepSeek" so they might need to pay a little bit more attention to how they copied those in.)


Licensing aside, these distilled models are remarkable beasts.


Running DeepSeek-R1-Distill-Llama-8B-GGUF


Quantized versions are already beginning to appear. Up until now I have actually tried simply among those- unsloth/DeepSeek-R 1-Distill-Llama-8B-GGUF released by Unsloth AI-and it's truly fun to have fun with.


I'm running it using the mix of Ollama, LLM and the llm-ollama plugin.


First I brought and annunciogratis.net ran the model utilizing Ollama itself:


This downloads around 8.5 GB of design data and begins an interactive chat user interface.


Once the design has actually been fetched, LLM can talk with it too. I choose utilizing LLM for experiments due to the fact that it logs everything to SQLite for later exploration.


I set up the plugin and ran it like this:


Each response starts with a ... pseudo-XML tag containing the chain of idea utilized to assist generate the response. For "a joke about a pelican and a walrus who run a tea space together" that started like this:


Okay, so I require to come up with a joke about a pelican and a walrus running a tea space together. Hmm, that's an intriguing combination. Let me believe about how these 2 characters may engage in a funny situation.


First, let's consider their attributes. Pelicans are understood for their long beaks and Webbed feet, often seen near the beach or bio.rogstecnologia.com.br water. Walruses have big teeth, thick fur, and they're usually found in cooler environments, like icebergs or snowy locations. So, combining these 2 into a tea room setting is already a funny image.


[...]

It then thought for 20 paragraphs before outputting the joke! Here's the complete records and here's the output at the end, after the tag:


The Joke:


A pelican and a walrus choose to open a quaint little tea room together. The walrus, with its big size, accc.rcec.sinica.edu.tw has a hard time to discover comfortable chairs, so it rests on the table by accident, knocking over the teapot. Meanwhile, the pelican, trying to help, utilizes its beak to place dishes on the table, causing a few spills.


After a series of funny incidents, the walrus searches for and states with a grin, "This isn't so fishy any longer." The pelican smirks and mentions, "Maybe not, however we do have a lot of krill in our tea!"


Explanation:


- Setup: Pelican and bytes-the-dust.com Walrus run a not likely tea space. Their sizes result in comical chaos.
- Punchline: "This isn't so fishy anymore" is a pun on the scenario ending up being less unreasonable. The follow-up joke introduces "krill," a play on words that connects into both marine life ("fish") and tea, making it humorous while fitting the style.


So yeah, the joke is awful. But the procedure of getting there was such an intriguing insight into how these new models work.


This was a fairly little 8B design. I'm anticipating checking out the Llama 70B variation, which isn't yet available in a GGUF I can keep up Ollama. Given the strength of Llama 3.3 70B-currently my preferred GPT-4 class model that I have actually operated on my own machine-I have high expectations.


Update 21st January 2025: I got this quantized variation of that Llama 3.3 70B R1 distilled model working like this-a 34GB download:


Can it draw a pelican?


I attempted my timeless Generate an SVG of a pelican riding a bike timely too. It did refrain from doing extremely well:


It aimed to me like it got the order of the aspects wrong, so I followed up with:


the background ended up covering the remainder of the image


It believed some more and offered me this:


Similar to the earlier joke, the chain of thought in the records was much more intriguing than the end result.


Other ways to attempt DeepSeek-R1


If you desire to attempt the design out without installing anything at all you can do so using chat.deepseek.com-you'll require to develop an account (sign in with Google, utilize an email address or supply a Chinese +86 phone number) and after that pick the "DeepThink" alternative listed below the timely input box.


DeepSeek offer the model through their API, utilizing an OpenAI-imitating endpoint. You can access that by means of LLM by dropping this into your extra-openai-models. yaml configuration file:


Then run llm secrets set deepseek and paste in your API key, then utilize llm -m deepseek-reasoner 'prompt' to run prompts.


This will not show you the reasoning tokens, sadly. Those are dished out by the API (example here) however LLM doesn't yet have a method to display them.

commentaires