{"id":27941,"date":"2025-01-30T08:41:43","date_gmt":"2025-01-30T00:41:43","guid":{"rendered":"https:\/\/www.1ai.net\/?p=27941"},"modified":"2025-02-06T11:51:20","modified_gmt":"2025-02-06T03:51:20","slug":"%e5%9b%bd%e4%ba%a7ai%e5%a4%a7%e6%a8%a1%e5%9e%8bdeepseek-%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e5%8f%8aapi%e6%8e%a5%e5%85%a5%e5%85%a8%e6%b5%81%e7%a8%8b%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/27941.html","title":{"rendered":"Domestic AI large model DeepSeek use and API access to the whole process details"},"content":{"rendered":"<p>Domestic AI Big Model <a href=\"https:\/\/www.1ai.net\/en\/tag\/deepseek\" title=\"[View articles tagged with [DeepSeek]]\" target=\"_blank\" >DeepSeek<\/a> Why is DeepSeek so hot? It has topped the AppStore free app charts in several countries.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27942\" title=\"c243d9f6j00sqvlp900bed000u000dlm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/c243d9f6j00sqvlp900bed000u000dlm.jpg\" alt=\"c243d9f6j00sqvlp900bed000u000dlm\" width=\"1080\" height=\"489\" \/><\/p>\n<p><strong>First: free and good<\/strong><\/p>\n<p>For computer use, you can directly visit DeepSeek's official website, and for cell phones, you can download it from major app markets, all free of charge.<\/p>\n<ul>\n<li>Official website: https:\/\/chat.deepseek.com\/<\/li>\n<li>App: search for \"DeepSeek\" in the app marketplace<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27943\" title=\"b4cc5ed3j00sqvlp9001nd000u000eem\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/b4cc5ed3j00sqvlp9001nd000u000eem.jpg\" alt=\"b4cc5ed3j00sqvlp9001nd000u000eem\" width=\"1080\" height=\"518\" \/><\/p>\n<p><strong>utilization effect<\/strong><\/p>\n<p>First of all it's very simple to use, no need for complicated prompt word tricks (remember to check the [Deep Thinking] mode). For example, I asked it to: write a statement of refusal to work overtime in Lu Xun's tone of voice<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27944\" title=\"dc30b456j00sqvlp9001od000u000d5m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/dc30b456j00sqvlp9001od000u000d5m.jpg\" alt=\"dc30b456j00sqvlp9001od000u000d5m\" width=\"1080\" height=\"473\" \/><\/p>\n<p>First of all, it will first think in depth, the entire depth of the thinking process: from the analysis of user needs to how to write, and finally there is a check mechanism, I have to say that this thinking is really very deep, to the editorial 23 days can not come up with, and it only took 23 seconds!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27945\" title=\"0c137432j00sqvlpa007rd000u000qam\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/0c137432j00sqvlpa007rd000u000qam.jpg\" alt=\"0c137432j00sqvlpa007rd000u000qam\" width=\"1080\" height=\"946\" \/><\/p>\n<p>And finally, look at the thought-out output<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27946\" title=\"5de85856j00sqvlp9006id000ms00sum\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/5de85856j00sqvlp9006id000ms00sum.jpg\" alt=\"5de85856j00sqvlp9006id000ms00sum\" width=\"820\" height=\"1038\" \/><\/p>\n<p>I have to say, this statement is perfect! Approximate overtime as a \u201cscrambling of spirits\u201d, the statement referred to as a \u201cyellow watch book of working hours\u201d and the precise stamping of the workers in pain. In the old words of the new world, the words are the hard words we dare not say, the last of which is that \u201cman has to walk on his feet\u201d, which is the word of the modern society\u3002<\/p>\n<p><strong>How can we use inference models better?<\/strong><\/p>\n<p>Two tips for using it are mentioned in this article, \"o1 isn't a chat model (and that's the point)\":<\/p>\n<p>Original: https:\/\/www.latent.space\/p\/o1-skill-issue<\/p>\n<p><strong>1. Providing rich background information<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27949\" title=\"1918e5b1j00sqvlpa007dd000u000ozm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/1918e5b1j00sqvlpa007dd000u000ozm.jpg\" alt=\"1918e5b1j00sqvlpa007dd000u000ozm\" width=\"1080\" height=\"899\" \/><\/p>\n<p>Use the inference model as if you were telling a friend about a difficult problem in detail, giving it all the relevant details such as the background of the problem, the approaches you have tried, and so on.<\/p>\n<p><strong>Case<\/strong>:<\/p>\n<p>You want to re-plan your small garden at home, so you can say something like this, \"My small garden is about 20 square meters in size and is irregularly shaped. Currently there are some flowers planted in it, but the layout is a bit messy. Before I tried to plant according to the color zoning, but the effect is not very good, it looks a little messy. I would like to create a small garden with character and beauty, and usually grow some vegetables. I prefer a natural and fresh style with a limited budget.\"<\/p>\n<p><strong>2. Focusing on objectives and clarifying outputs<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27951\" title=\"62408acaj00sqvlp9007hd000u000khm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/62408acaj00sqvlp9007hd000u000khm.jpg\" alt=\"62408acaj00sqvlp9007hd000u000khm\" width=\"1080\" height=\"737\" \/><\/p>\n<p>Just tell the inference model what you ultimately want the result to be, never mind exactly how it does it.<\/p>\n<p><strong>Case<\/strong>:<\/p>\n<p>\"I need a plan for small garden re-planning, including plant layout, vegetable planting area division, overall style design, to reflect the natural and fresh style, and to consider low cost.\"<\/p>\n<p><strong>Second: open source technology<\/strong><\/p>\n<p>DeepSeek model open source License unified standardized, loose MIT License, completely open source, no restrictions on commercial use, no need to apply.<\/p>\n<ul>\n<li>Open source address: https:\/\/github.com\/deepseek-ai\/DeepSeek-LLM<\/li>\n<li>HuggingFace Link: https:\/\/huggingface.co\/deepseek-ai<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27947\" title=\"4467653bj00sqvlp90073d000u000gam\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/4467653bj00sqvlp90073d000u000gam.jpg\" alt=\"4467653bj00sqvlp90073d000u000gam\" width=\"1080\" height=\"586\" \/><\/p>\n<p><strong>technical strength<\/strong><\/p>\n<p>DeepSeek-R1 uses reinforcement learning techniques on a large scale in the post-training phase, which greatly improves the model inference ability with only a very small amount of labeled data. The performance is comparable to that of the official OpenAI o1 version in tasks such as math, code, and natural language reasoning.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27950\" title=\"b71e2a17j00sqvlp90023d000p100eqm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/b71e2a17j00sqvlp90023d000p100eqm.jpg\" alt=\"b71e2a17j00sqvlp90023d000p100eqm\" width=\"901\" height=\"530\" \/><\/p>\n<p>Thesis: https:\/\/github.com\/deepseek-ai\/DeepSeek-R1\/blob\/main\/DeepSeek_R1.pdf<\/p>\n<p>DeepSeek-R1 further improves the inference performance by introducing 'cold-start data' and 'multi-stage training' to reach a level comparable to OpenAI-o1-1217. In addition, the inference power is successfully transferred to smaller and denser models through the 'distillation technique', which significantly improves the inference performance of these models.<\/p>\n<blockquote>\n<ul>\n<li>Cold start data:<\/li>\n<li>DeepSeek-R1 uses a small amount of high-quality \"cold-start\" data for fine-tuning before starting large-scale reinforcement learning. This data helps the model get to a better state quickly, reducing the number of iterations and time required to train from scratch.<\/li>\n<li><\/li>\n<li>Multi-stage training:<\/li>\n<li>DeepSeek-R1 employs a multi-stage training process. First, reinforcement learning is used to enhance the model's inference; then, further fine-tuning is performed in conjunction with supervised data as convergence is approached. This approach ensures that the model's performance on different tasks is optimized.<\/li>\n<li><\/li>\n<li>Distillation techniques:<\/li>\n<li>Distillation is a technique for transferring knowledge from a large model to a smaller model.DeepSeek-R1 acts as a teacher model, generating a large number of samples for training. These samples are used to fine-tune the smaller models so that they can inherit the reasoning capabilities of the larger models. This approach saves computational resources by not requiring large-scale reinforcement learning on small models.<\/li>\n<\/ul>\n<\/blockquote>\n<p>DeepSeek-R1 with equal performance <a href=\"https:\/\/www.1ai.net\/en\/tag\/api\" title=\"_OTHER ORGANISER\" target=\"_blank\" >API<\/a> The price is dozens of times cheaper than the OpenAI o1 API price, which is the king of price\/performance ratio!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27948\" title=\"95eae0f4j00sqvlp90028d000u000j5m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/95eae0f4j00sqvlp90028d000u000j5m.jpg\" alt=\"95eae0f4j00sqvlp90028d000u000j5m\" width=\"1080\" height=\"689\" \/><\/p>\n<p>If you want to incorporate it into your business you can use the API approach<\/p>\n<p><strong>How do I access the DeepSeek-R1 API?<\/strong><\/p>\n<ol>\n<li>Go to DeepSeek official website<\/li>\n<li>https:\/\/www.deepseek.com\/<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27954\" title=\"9d745714j00sqvlp8000sd000u000dlm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/9d745714j00sqvlp8000sd000u000dlm.jpg\" alt=\"9d745714j00sqvlp8000sd000u000dlm\" width=\"1080\" height=\"489\" \/><\/p>\n<ol>\n<li>Register and log in to your account to access the working back office<\/li>\n<li>https:\/\/platform.deepseek.com\/usage<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27953\" title=\"87dff526j00sqvlp9001ed000u000gam\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/87dff526j00sqvlp9001ed000u000gam.jpg\" alt=\"87dff526j00sqvlp9001ed000u000gam\" width=\"1080\" height=\"586\" \/><\/p>\n<ol>\n<li>Select the API menu to create API Keys and copy and save them.<\/li>\n<li>API Documentation Address<\/li>\n<li>https:\/\/api-docs.deepseek.com\/zh-cn\/guides\/reasoning_model<\/li>\n<\/ol>\n<p>The inference model will output a piece of thought chain content before the model outputs the final answer to improve the accuracy of the final answer.<\/p>\n<p>During each round of dialog, the model outputs the thought chain content (reasoning_content) and the final answer (content). In the next round of dialog, the thought chain content output from the previous rounds is not spliced into the context, as shown in the following figure:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27952\" title=\"9388198aj00sqvlp8001sd000gx00ftm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/01\/9388198aj00sqvlp8001sd000gx00ftm.jpg\" alt=\"9388198aj00sqvlp8001sd000gx00ftm\" width=\"609\" height=\"569\" \/><\/p>\n<p>In use <code>deepseek-reasoner<\/code> Please upgrade the OpenAI SDK to support the new parameters.<\/p>\n<p><code data-lark-language=\"Bash\" data-wrap=\"false\"><\/code><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<\/ul>\n<p><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">pip3<\/span> install -U openai<\/span><\/code><code><\/code><\/p>\n<\/section>\n<p>The following code, in Python, shows how to access thought chains and final answers, as well as how to contextually splice in multiple rounds of dialog.<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<p><code><span class=\"code-snippet_outer\">from openai import OpenAI<\/span><\/code><code><span class=\"code-snippet_outer\">client = OpenAI(api_key=<span class=\"code-snippet__string\">\"\"<\/span>, base_url=<span class=\"code-snippet__string\">\"https:\/\/api.deepseek.com\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\"><br \/>\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\"># Round 1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">messages = [{<span class=\"code-snippet__string\">\"role\"<\/span>: <span class=\"code-snippet__string\">\"user\"<\/span>, <span class=\"code-snippet__string\">\"content\"<\/span>: <span class=\"code-snippet__string\">\"9\/11 or 9.8, which is bigger?\"<\/span>}]<\/span><\/code><code><span class=\"code-snippet_outer\">response = client.chat.completions.create(<\/span><\/code><code><span class=\"code-snippet_outer\">    model=<span class=\"code-snippet__string\">\"deepseek-reasoner\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">    messages=messages<\/span><\/code><code><span class=\"code-snippet_outer\">)<\/span><\/code><code><span class=\"code-snippet_outer\"><br \/>\n<\/span><\/code><code><span class=\"code-snippet_outer\">reasoning_content = response.choices[0].message.reasoning_content<\/span><\/code><code><span class=\"code-snippet_outer\">content = response.choices[0].message.content<\/span><\/code><\/p>\n<\/section>\n<p><strong>Summarize<\/strong><\/p>\n<p>It's no coincidence that DeepSeek has exploded in popularity.<strong>Technological inclusion is never an empty word, but a free spirit engraved in every line of open source code, and an unfading promise in the wave of technological affirmative action.<\/strong>.<\/p>","protected":false},"excerpt":{"rendered":"<p>DeepSeek, top of the list of countries, AppStore. One: Free access to computers, direct access to the DeepSeek network, and mobile phones can be downloaded at major applications and used free of charge. Official web site: https:\/\/chat.deepseek.com\/ App: Searching for \"DeepSeek\" in the applied market uses effects, first of all it is very simple and does not require complex tips (remember to tick the [deep thinking] mode). For example, I let it: write a statement of refusal to work overtime in the words of Lou, and it starts with an in-depth thinking process: from the needs of the users<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[1033,3606],"collection":[5669],"class_list":["post-27941","post","type-post","status-publish","format-standard","hentry","category-baike","tag-api","tag-deepseek","collection-deepseek"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/27941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=27941"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/27941\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=27941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=27941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=27941"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=27941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}