1 Simon Willison's Weblog
Allie Picard edited this page 2025-02-09 17:23:57 +00:00


That design was trained in part utilizing their unreleased R1 "thinking" model. Today they've released R1 itself, in addition to an entire household of new models obtained from that base.

There's an entire lot of things in the new release.

DeepSeek-R1-Zero appears to be the base design. It's over 650GB in size and, like the majority of their other releases, is under a clean MIT license. DeepSeek caution that "DeepSeek-R1-Zero encounters difficulties such as limitless repeating, poor readability, and language blending." ... so they likewise launched:

DeepSeek-R1-which "integrates cold-start data before RL" and "attains performance comparable to OpenAI-o1 across mathematics, code, and thinking jobs". That a person is likewise MIT accredited, and is a comparable size.

I do not have the ability to run models larger than about 50GB (I have an M2 with 64GB of RAM), so neither of these two models are something I can quickly play with myself. That's where the brand-new distilled models are available in.

To support the research study neighborhood, we have open-sourced DeepSeek-R1-Zero, DeepSeek-R1, and 6 thick designs distilled from DeepSeek-R1 based on Llama and Qwen.

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

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

(I likewise simply discovered the MIT license files state "Copyright (c) 2023 DeepSeek" so they may require to pay a little bit more attention to how they copied those in.)

Licensing aside, these distilled models are fascinating monsters.

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

Quantized variations are already starting to appear. Up until now I've tried just among those- unsloth/DeepSeek-R 1-Distill-Llama-8B-GGUF launched by Unsloth AI-and it's really enjoyable to play with.

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

First I brought and ran the design utilizing Ollama itself:

This downloads around 8.5 GB of model information and starts an interactive chat interface.

Once the design has actually been brought, LLM can speak with it too. I prefer using LLM for experiments because it logs everything to SQLite for later expedition.

I installed the plugin and ran it like this:

Each response starts with a ... pseudo-XML tag containing the chain of idea utilized to help create 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 room together. Hmm, that's an interesting mix. Let me think of how these 2 characters may engage in an amusing scenario.

First, let's consider their qualities. Pelicans are known for their long beaks and Webbed feet, frequently seen near the beach or water. Walruses have huge teeth, thick fur, and they're usually found in cooler climates, like icebergs or snowy areas. So, integrating these two into a tea space setting is already a funny image.

[...]
It then believed for 20 paragraphs before outputting the joke! Here's the complete transcript and here's the output at the end, after the tag:

The Joke:

A pelican and a walrus decide to open a quaint little tea space together. The walrus, with its huge size, struggles to discover comfy chairs, so it sits on the table by accident, overturning the teapot. Meanwhile, the pelican, trying to assist, uses its beak to place saucers on the table, causing a couple of spills.

After a series of humorous accidents, the walrus looks up and states with a grin, "This isn't so fishy anymore." The pelican smirks and remarks, "Maybe not, however we do have a lot of krill in our tea!"

Explanation:

- Setup: Pelican and Walrus run an unlikely tea space. Their sizes lead to comedic turmoil.

  • Punchline: "This isn't so fishy anymore" is a pun on the circumstance becoming less absurd. The follow-up joke presents "krill," a play on words that connects into both marine life ("fish") and tea, making it humorous while fitting the theme.

    So yeah, valetinowiki.racing the joke is terrible. But the process of getting there was such an intriguing insight into how these new designs work.

    This was a fairly small 8B design. I'm anticipating attempting out the Llama 70B version, which isn't yet available in a GGUF I can keep up Ollama. Given the strength of Llama 3.3 70B-currently my favourite GPT-4 class model that I've worked 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 design working like this-a 34GB download:

    Can it draw a pelican?

    I attempted my classic 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 incorrect, so I followed up with:

    the background ended up covering the remainder of the image

    It believed some more and offered me this:

    Just like the earlier joke, the chain of thought in the records was much more fascinating than completion outcome.

    Other methods to attempt DeepSeek-R1

    If you wish to try the model out without setting up anything you can do so utilizing chat.deepseek.com-you'll need to produce an account (check in with Google, utilize an email address or offer a Chinese +86 phone number) and after that pick the "DeepThink" alternative below the prompt input box.

    DeepSeek use the design via their API, using an OpenAI-imitating endpoint. You can access that by means of LLM by dropping this into your extra-openai-models. yaml setup file:

    Then run llm keys set deepseek and paste in your API secret, then utilize llm -m deepseek-reasoner 'timely' to run triggers.

    This won't show you the reasoning tokens, . Those are provided by the API (example here) however LLM doesn't yet have a way to show them.