|
| 1 | +--- |
| 2 | +meta: |
| 3 | + title: Understanding the DeepSeek-R1-Distill-Llama-8B model |
| 4 | + description: Deploy your own secure DeepSeek-R1-Distill-Llama-8B model with Scaleway Managed Inference. Privacy-focused, fully managed. |
| 5 | +content: |
| 6 | + h1: Understanding the DeepSeek-R1-Distill-Llama-8B model |
| 7 | + paragraph: This page provides information on the DeepSeek-R1-Distill-Llama-8B model |
| 8 | +tags: |
| 9 | +dates: |
| 10 | + validation: 2025-02-06 |
| 11 | + posted: 2025-02-06 |
| 12 | +categories: |
| 13 | + - ai-data |
| 14 | +--- |
| 15 | + |
| 16 | +## Model overview |
| 17 | + |
| 18 | +| Attribute | Details | |
| 19 | +|-----------------|------------------------------------| |
| 20 | +| Provider | [Deepseek](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B) | |
| 21 | +| License | [MIT](https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/mit.md) | |
| 22 | +| Compatible Instances | L4, H100 (BF16) | |
| 23 | +| Context Length | up to 131k tokens | |
| 24 | + |
| 25 | +## Model names |
| 26 | + |
| 27 | +```bash |
| 28 | +deepseek/deepseek-r1-distill-llama-8b:bf16 |
| 29 | +``` |
| 30 | + |
| 31 | +## Compatible Instances |
| 32 | + |
| 33 | +| Instance type | Max context length | |
| 34 | +| ------------- |-------------| |
| 35 | +| L4 | 39k (BF16) | |
| 36 | +| H100 | 131k (BF16) | |
| 37 | + |
| 38 | +## Model introduction |
| 39 | + |
| 40 | +Released January 21, 2025, Deepseek’s R1 Distilled Llama 8B is a distilled version of the Llama model family based on Deepseek R1. |
| 41 | +DeepSeek R1 Distill Llama 8B is designed to improve the performance of Llama models on reasoning use cases such as mathematics and coding tasks. |
| 42 | + |
| 43 | +## Why is it useful? |
| 44 | + |
| 45 | +It is great to see Deepseek improving open(weight) models, and we are excited to fully support their mission with integration in the Scaleway ecosystem. |
| 46 | + |
| 47 | +- DeepSeek-R1-Distill-Llama was optimized to reach accuracy close to Deepseek-R1 in tasks like mathematics and coding, while keeping inference costs limited and tokens speed efficient. |
| 48 | +- DeepSeek-R1-Distill-Llama supports a context window of up to 131K tokens and tool calling, keeping interaction with other components possible. |
| 49 | + |
| 50 | +## How to use it |
| 51 | + |
| 52 | +### Sending Managed Inference requests |
| 53 | + |
| 54 | +To perform inference tasks with your DeepSeek R1 Distill Llama deployed at Scaleway, use the following command: |
| 55 | + |
| 56 | +```bash |
| 57 | +curl -s \ |
| 58 | +-H "Authorization: Bearer <IAM API key>" \ |
| 59 | +-H "Content-Type: application/json" \ |
| 60 | +--request POST \ |
| 61 | +--url "https://<Deployment UUID>.ifr.fr-par.scaleway.com/v1/chat/completions" \ |
| 62 | +--data '{"model":"deepseek/deepseek-r1-distill-llama-8b:fp8", "messages":[{"role": "user","content": "There is a llama in my garden, what should I do?"}], "max_tokens": 500, "temperature": 0.7, "stream": false}' |
| 63 | +``` |
| 64 | + |
| 65 | +Make sure to replace `<IAM API key>` and `<Deployment UUID>` with your actual [IAM API key](/iam/how-to/create-api-keys/) and the Deployment UUID you are targeting. |
| 66 | + |
| 67 | +<Message type="note"> |
| 68 | + Ensure that the `messages` array is properly formatted with roles (user, assistant) and content. |
| 69 | +</Message> |
| 70 | + |
| 71 | +<Message type="tip"> |
| 72 | + This model is better used without `system prompt`, as suggested by the model provider. |
| 73 | +</Message> |
| 74 | + |
| 75 | +### Receiving inference responses |
| 76 | + |
| 77 | +Upon sending the HTTP request to the public or private endpoints exposed by the server, you will receive inference responses from the managed Managed Inference server. |
| 78 | +Process the output data according to your application's needs. The response will contain the output generated by the LLM model based on the input provided in the request. |
| 79 | + |
| 80 | +<Message type="note"> |
| 81 | + Despite efforts for accuracy, the possibility of generated text containing inaccuracies or [hallucinations](/managed-inference/concepts/#hallucinations) exists. Always verify the content generated independently. |
| 82 | +</Message> |
0 commit comments