本地部署大语言模型-DeepSeek

DeepSeek 是国内顶尖 AI 团队「深度求索」开发的多模态大模型,具备数学推理、代码生成等深度能力,堪称"AI界的六边形战士"。

Hostease AMD 9950X/96G/3.84T NVMe/1G/5IP/RTX4090 GPU服务器提供多种计费模式。

DeepSeek-R1-32B配置

配置项

规格要求

CPU

16 核以上(如 AMD Ryzen 9950)

内存

96GB

硬盘

960GB

显卡

24GB+ 显存(如 RTX 4090)

# cat cpuinfo |grep name|head -1
model name    : AMD Ryzen 9 9950X 16-Core Processor

# nvidia-smi 
Sun Mar  2 14:51:30 2025       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 4090        Off | 00000000:01:00.0 Off |                  Off |
|  0%   27C    P8               5W / 450W |    495MiB / 24564MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
安装步骤(略写)

apt update
apt install nvidia-driver-535 -y
curl -fsSL https://ollama.com/install.sh | sh
ollama run deepseek-r1:32b-qwen-distill-q4_K_M --verbose

创建对话返回结果

>>> which is bigger,9.8 or 9.11?
<think>
Alright, so I'm trying to figure out whether 9.8 is bigger than 9.11 or not. At first glance, it seems like both numbers are pretty close to each 
other since they both start with a 9 and then have some decimal parts. But wait, maybe there's something more to it.Okay, let me break this down step by step. First, I need to understand what these decimals represent. So, 9.8 can be read as nine plus eight 
tenths, right? And 9.11 is nine plus eleven hundredths. Hmm, that makes sense. Now, the question is asking which one is bigger.Maybe it would help if I line them up vertically to compare the digits after the decimal point more easily:```9.809.11
```By adding a zero to 9.8 to make it 9.80, we can see that both numbers have two decimal places now. This should make the comparison straightforward.Now, let's look at the tenths place first:- For 9.80, the tenths digit is 8.
- For 9.11, the tenths digit is 1.Okay, so right here, it seems like 8 is greater than 1. That would mean that 9.80 is bigger because its tenths place is larger than the tenths 
place of 9.11.But wait a second—is there something else I should consider? Maybe rounding or anything like that?Well, since both numbers are already given to two decimal places and we've added an extra zero to make them consistent, I think it's safe to say 
that no further adjustment is necessary.Still, just to be thorough, let me convert these decimals into fractions to see if there's a difference in their values.For 9.80:- 0.80 as a fraction is the same as \( \frac{80}{100} \), which simplifies down to \( \frac{4}{5} \).So, 9.80 is equal to \( 9 + \frac{4}{5} = \frac{45}{5} + \frac{4}{5} = \frac{49}{5} \).For 9.11:- 0.11 as a fraction is approximately \( \frac{11}{100} \).So, 9.11 is equal to \( 9 + \frac{11}{100} = \frac{900}{100} + \frac{11}{100} = \frac{911}{100} \).Now, let's compare these two fractions:- \( \frac{49}{5} = 9.8 \)
- \( \frac{911}{100} = 9.11 \)To see which one is bigger, I can convert both to have the same denominator or find a common basis for comparison.Let's try finding equivalent fractions with the same denominator:The denominators are 5 and 100. Since 100 is a multiple of 5 (specifically, \( \frac{100}{5} = 20 \)), I'll convert both fractions to have a 
denominator of 100.For \( \frac{49}{5} \):- Multiply numerator and denominator by 20: \( \frac{49 \times 20}{5 \times 20} = \frac{980}{100} \).So, \( \frac{49}{5} = \frac{980}{100} \).Now we have:- \( \frac{980}{100} \) (which is 9.8)
- \( \frac{911}{100} \) (which is 9.11)Comparing the numerators directly, since both fractions have the same denominator:- 980 > 911This means that \( \frac{980}{100} > \frac{911}{100} \), or in other words, 9.8 is greater than 9.11.Wait a minute—this contradicts what I thought earlier where the tenths place indicated that 9.8 was bigger because of having an 8 instead of a 1 in 
the tenths place. But when converting to fractions with the same denominator, it's clear that even though both numbers have nine as their whole 
number part, the decimal parts make a difference.But according to my calculations:- 9.8 is larger than 9.11 because \( \frac{49}{5} \) (or \( \frac{980}{100} \)) is greater than \( \frac{911}{100} \).So, this further confirms that 9.8 is bigger.Is there anything else I need to consider? Maybe looking at the hundredths place?Well, since we've already converted both numbers to have the same denominator and confirmed that 9.8 has a larger numerator in the hundredths place 
as well (\( \frac{980}{100} \) vs. \( \frac{911}{100} \)), I think we can confidently say that 9.8 is indeed bigger than 9.11.Additionally, thinking about it on a number line might help visualize this:- If you imagine the numbers from 9 to 10:- 9.8 would be closer to 10.- 9.11 would be much closer to 9.Therefore, 9.8 is further along towards 10 and thus larger than 9.11.But just to ensure there's no mistake in the fraction conversion, let me double-check:- \( \frac{49}{5} = 9.8 \) since \( 49 ÷ 5 = 9.8 \).That seems correct because 5 times 9 is 45, and 49 minus 45 leaves a remainder of 4, so \( \frac{4}{5} = 0.8 \), making it 9.8.And for \( \frac{911}{100} \):- \( 911 ÷ 100 = 9.11 \).Yes, that's accurate because dividing by 100 moves the decimal point two places to the left.So everything checks out mathematically.Is there any alternative way to think about this?Perhaps considering money as an analogy:- If you have $9.80 and $9.11:- You'd obviously have more with $9.80 than with $9.11.This real-world scenario aligns with the mathematical conclusion that 9.8 is bigger.Alternatively, think of it in terms of measurements:- If something measures 9.8 centimeters and another measures 9.11 centimeters:- The first one would be longer than the second one.All these analogies reinforce the idea that 9.8 is indeed larger than 9.11.So, after carefully analyzing through different methods—decimal comparison, fraction conversion, number line visualization, and real-life 
analogies—it becomes clear that 9.8 is bigger than 9.11.
</think>To determine which number is larger between \( 9.8 \) and \( 9.11 \), we can follow these steps:1. **Understand the Numbers**:- \( 9.8 \) is equivalent to \( 9.80 \).- Both numbers have a whole number part of 9.2. **Compare the Decimal Parts**:- The decimal part of \( 9.8 \) (or \( 9.80 \)) is 0.80.- The decimal part of \( 9.11 \) is 0.11.- Since \( 0.80 > 0.11 \), the decimal part of \( 9.8 \) is larger.3. **Conclusion**:- Therefore, \( 9.8 \) is bigger than \( 9.11 \).Final Answer:  
\[
\boxed{9.8}
\]eval count:           501 token(s)
eval duration:        12.478s
eval rate:            40.15 tokens/s>>> 

Web页面返回对话,2个数字比大小结果

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/27129.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

第三百七十二节 JavaFX教程 - JavaFX HTMLEditor

JavaFX教程 - JavaFX HTMLEditor HTMLEditor控件是一个富文本编辑器&#xff0c;具有以下功能。 粗体斜体下划线删除线字体系列字体大小前景色背景颜色缩进项目符号列表编号列表对齐水平线复制文本片段粘贴文本片段 HTMLEditor类返回HTML字符串中的编辑内容。 创建HTML编辑器…

java后端开发day25--阶段项目(二)

&#xff08;以下内容全部来自上述课程&#xff09; 1.美化界面 private void initImage() {//路径分两种&#xff1a;//1.绝对路径&#xff1a;从盘符开始写的路径 D:\\aaa\\bbb\\ccc.jpg//2.相对路径&#xff1a;从当前项目开始写的路径 aaa\\bbb\\ccc.jpg//添加图片的时…

Vscode通过Roo Cline接入Deepseek

文章目录 背景第一步、安装插件第二步、申请API key第三步、Vscode中配置第四步、Deepseek对话 背景 在前期介绍【IDEA通过Contince接入Deepseek】步骤和流程&#xff0c;那如何在vscode编译器中使用deepseek&#xff0c;记录下来&#xff0c;方便备查。 第一步、安装插件 在…

计算机毕业设计SpringBoot+Vue.js智能无人仓库管理系统(源码+文档+PPT+讲解)

温馨提示&#xff1a;文末有 CSDN 平台官方提供的学长联系方式的名片&#xff01; 温馨提示&#xff1a;文末有 CSDN 平台官方提供的学长联系方式的名片&#xff01; 温馨提示&#xff1a;文末有 CSDN 平台官方提供的学长联系方式的名片&#xff01; 作者简介&#xff1a;Java领…

DeepSeek如何快速开发PDF转Word软件

一、引言 如今&#xff0c;在线工具的普及让PDF转Word成为了一个常见需求&#xff0c;常见的PDF转Word工具有收费的WPS&#xff0c;免费的有PDFGear&#xff0c;以及在线工具SmallPDF、iLovePDF、24PDF等。然而&#xff0c;大多数免费在线转换工具存在严重隐私风险——文件需上…

【漫话机器学习系列】109.线性无关(Linearly Independent)

1. 什么是线性无关&#xff1f; 在线性代数中&#xff0c;线性无关是描述向量组的一个重要概念。如果一组向量中的任何一个向量不能由该组中其他向量的线性组合表示出来&#xff0c;那么这些向量就是线性无关的。具体而言&#xff0c;若向量 ​ 是线性无关的&#xff0c;那么不…

蓝桥杯 灯笼大乱斗【算法赛】

问题描述 元宵佳节&#xff0c;一场别开生面的灯笼大赛热闹非凡。NN 位技艺精湛的灯笼师依次落座&#xff0c;每位师傅都有相应的资历值&#xff0c;其中第 ii 位师傅的资历值为 AiAi​。从左到右&#xff0c;师傅们的资历值逐级递增&#xff08;即 A1<A2<⋯<ANA1​&l…

Android15 Camera HAL Android.bp中引用Android.mk编译的libB.so

背景描述 Android15 Camera HAL使用Android.bp脚本来构建系统。假设Camera HAL中引用了另外一个HAL实现的so &#xff08;例如VPU HAL&#xff09;&#xff0c; 恰巧被引用的这个VPU HAL so是用Android.mk构建的&#xff0c;那Camera HAL Android.bp在直接引用这个Android.mk编…

计算机视觉(opencv-python)入门之图像的读取,显示,与保存

在计算机视觉领域&#xff0c;Python的cv2库是一个不可或缺的工具&#xff0c;它提供了丰富的图像处理功能。作为OpenCV的Python接口&#xff0c;cv2使得图像处理的实现变得简单而高效。 示例图片 目录 opencv获取方式 图像基本知识 颜色空间 RGB HSV 图像格式 BMP格式 …

鸿蒙5.0实战案例:基于原生能力获取视频缩略图

往期推文全新看点&#xff08;文中附带全新鸿蒙5.0全栈学习笔录&#xff09; ✏️ 鸿蒙&#xff08;HarmonyOS&#xff09;北向开发知识点记录~ ✏️ 鸿蒙&#xff08;OpenHarmony&#xff09;南向开发保姆级知识点汇总~ ✏️ 鸿蒙应用开发与鸿蒙系统开发哪个更有前景&#…

【问题记录】Go项目Docker中的consul访问主机8080端口被拒绝

【问题记录】Go项目Docker中的consul访问主机8080端口被拒绝 问题展示解决办法 问题展示 在使用docker中的consul服务的时候&#xff0c;通过命令行注册相应的服务&#xff08;比如cloudwego项目的demo_proto以及user服务&#xff09;失败。 解决办法 经过分析&#xff0c;是…

随机树算法 自动驾驶汽车的路径规划 静态障碍物(Matlab)

随着自动驾驶技术的蓬勃发展&#xff0c;安全、高效的路径规划成为核心挑战之一。快速探索随机树&#xff08;RRT&#xff09;算法作为一种强大的路径搜索策略&#xff0c;为自动驾驶汽车在复杂环境下绕过静态障碍物规划合理路径提供了有效解决方案。 RRT 算法基于随机采样思想…

数据集笔记:新加坡停车费

data.gov.sg 该数据集包含 新加坡各停车场的停车费&#xff0c;具体信息包括&#xff1a; 停车场名称&#xff08;Carpark&#xff09;&#xff1a;如 Toa Payoh Lorong 8、Ang Mo Kio Hub、Bras Basah Complex 等。停车区域类别&#xff08;Category&#xff09;&#xff1a…

netty如何处理粘包半包

文章目录 NIO中存在问题粘包半包滑动窗口MSS 限制Nagle 算法 解决方案 NIO中存在问题 粘包 现象&#xff0c;发送 abc def&#xff0c;接收 abcdef原因 应用层&#xff1a;接收方 ByteBuf 设置太大&#xff08;Netty 默认 1024&#xff09;滑动窗口&#xff1a;假设发送方 25…

设计模式之责任链模式

引言 在职场中&#xff0c;请假流程大家都再熟悉不过&#xff1a;申请 1 至 2 天的假期&#xff0c;只需直属主管审批即可&#xff1b;若要请假 3 至 5 天&#xff0c;就需部门负责人进行复核&#xff1b;而超过 5 天的假期申请&#xff0c;则必须由总经理最终定夺。要是遇到超…

【漫话机器学习系列】112.逻辑回归(Logistic Regression)

逻辑回归&#xff08;Logistic Regression&#xff09;详解 1. 逻辑回归简介 逻辑回归&#xff08;Logistic Regression&#xff09;是一种广泛用于二分类任务的统计和机器学习方法&#xff0c;尽管它的名字中带有“回归”&#xff0c;但它实际上是一种分类算法。 在逻辑回归…

大模型function calling:让AI函数调用更智能、更高效

大模型function calling&#xff1a;让AI函数调用更智能、更高效 随着大语言模型&#xff08;LLM&#xff09;的快速发展&#xff0c;其在实际应用中的能力越来越受到关注。Function Calling 是一种新兴的技术&#xff0c;允许大模型与外部工具或API进行交互&#xff0c;从而扩…

通过 PromptTemplate 生成干净的 SQL 查询语句并执行SQL查询语句

问题描述 在使用 LangChain 和 Llama 模型生成 SQL 查询时&#xff0c;遇到了 sqlite3.OperationalError 错误。错误信息如下&#xff1a; OperationalError: (sqlite3.OperationalError) near "sql SELECT Name FROM MediaType LIMIT 5; ": syntax error [SQL: …

计算机毕业设计SpringBoot+Vue.js企业资产管理系统(源码+文档+PPT+讲解)

温馨提示&#xff1a;文末有 CSDN 平台官方提供的学长联系方式的名片&#xff01; 温馨提示&#xff1a;文末有 CSDN 平台官方提供的学长联系方式的名片&#xff01; 温馨提示&#xff1a;文末有 CSDN 平台官方提供的学长联系方式的名片&#xff01; 作者简介&#xff1a;Java领…

从零开始:H20服务器上DeepSeek R1 671B大模型部署与压力测试全攻略

前言 最近&#xff0c;我有幸在工作中接触到了DeepSeek R1 671B模型&#xff0c;这是目前中文开源领域参数量最大的高质量模型之一。DeepSeek团队在2024年推出的这款模型&#xff0c;以其惊人的6710亿参数量和出色的推理性能&#xff0c;引起了业界广泛关注。 作为一名AI基础…