- 博客(69)
- 资源 (25)
- 问答 (1)
- 收藏
- 关注
原创 RuntimeError: CUDA out of memory occurred when warming up sampler with 256 dummy requests. Please tr
解决部署vllm服务gpu内存溢出问题
2025-05-10 17:39:50
453
原创 error: importlib-metadata 8.6.1 is installed but importlib-metadata<=8.0.0,>=6.0 is required by {‘op
5090(cuda12.8)环境上面自vllm运行大模型
2025-05-10 17:00:03
221
原创 libstdc++.so.6: version `GLIBCXX_3.4.32‘ not found (required by /home/dongdong/miniconda3/envs/huggi
2.1 先判断是不是系统缺少一个特定版本的 libstdc++库。这通常是由于系统的 GCC 版本较旧,需要更新libstdc++` 库。A、 更新 GCC: 安装或更新你的 GCC 版本,以确保你有最新的 libstdc++ 库。2.2 如果出现GLIBCXX_3.4.30还是报错,那我们建立软链接。也可以使用使用 Conda 安装合适版本的 libstdc++确保输出中包含 GLIBCXX_3.4.30。如果是版本较旧:则更新系统的 GCC 版本。
2025-04-08 11:29:17
300
原创 RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before cal
在使用NVIDIA的CUDA库进行编程时,遇到“RuntimeError: Unexpected error from cudaGetDeviceCount()”报错。
2025-04-08 11:16:57
1158
原创 CUDA error: no kernel image is available for execution on the device
这个没有什么好办法因为每个人机器不一样(安装流程就是:1.安装cuda+cudnn;2.安装pytorch;3.安装transforms;),就是利用conda创建一个新的环境,然后重新安装环境。官网: https://developer.nvidia.com/cudnn-downloads。查看教程: 1.ubunbu 22.04安装nvidia驱动.mhtml。2.2 cuda版本与pytorch的版本是否匹配。2.1 cuda+cudnn配置是否正确。3. pytorch安装。
2025-04-06 17:23:41
430
原创 ubantu操作笔记
输入命令usermod -aG sudo username将新用户添加到sudo组。这样,新用户就可以执行sudo命令,具有root权限。如果您想要将新用户添加到root组,可以输入命令usermod -aG root username(注意:直接给新用户授予root权限可能存在安全隐患,建议仅在必要时使用)。如果成功执行sudo whoami命令,并输出root,则说明新用户已经具有sudo权限。通过以上步骤,您已经成功在Ubuntu系统中添加了新用户并授予了root权限。# 给用户test1设置密码。
2025-04-06 17:17:14
683
原创 ValueError: One input key expected got [‘human_input‘, ‘chat_history‘]
通义千问+LangChain+ConversationBufferMemory练习
2025-03-09 19:32:30
331
原创 Java正则表达式
当我们查找到了我们需要的字符串的时候,假设这个字符串是由多个部分组成,我们想要获取这个字符串的某几部分分开操作,这个时候,如果重新使用正则表达式就有点麻烦,可以在编辑正则表达式的时候分组。这里如果不写两个转义符号"\\",明显会报错,说明该字符必须添加,正则中字符串为"\{" 再"\"也是特殊字符,故而最终是 "\\{"开头有 "{" 所以不匹配,如果想要匹配,则可以更改正则表达式为 : "^.*\"log_id\".*$"找到的字符串值: "log_id":2 ,开始位置:2,结束位置:12。
2024-07-05 16:28:46
756
原创 Mybatis-Plus使用时,entity类必须添加无参构造方法
如果使用lombok,还可以这么快速添加:@NoArgsConstructor,全参数的也加一个:@AllArgsConstructor。Mybatis-Plus使用时,entity类必须添加无参构造方法。解决就是给Entity实体类添加一个无参数构造方法。
2023-08-17 22:09:13
614
原创 gitpython实现window双击exe程序,自动提交git远程仓库
gitpython实现window双击exe程序,自动提交git远程仓库,需要编辑配置文件,能够自动识别.gitignore
2023-05-01 12:27:25
255
原创 异常:nested exception is java.lang.NoSuchFieldError: DEFAULT_SHUTDOWN_QUIET_PERIOD
Spring Cloud Gateway或者SpringBoot启动异常
2022-08-23 10:56:45
2081
原创 SpringBoot Thymeleaf 入门
SpringBoot Thymeleaf 入门常见异常: An error happened during template parsing (template: "class path resource
2022-06-05 23:03:44
279
原创 python 校验身份证号码 并输出对应省市县生日 demo
1.需求2.代码实现 # _*_coding:utf-8_*_import redef validateIdCard(idCard): weight = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] check_code = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'] sum = 0 for i in range(len(idC
2022-05-11 23:16:55
6603
原创 静态工具类使用单例对象线程安全问题注意1
1.记录问题1.1工具类代码public static SimpleDateFormat sdfTest = new SimpleDateFormat("yyyy年MM月dd日"); public static Date selectDate(String stageDuring) { try { System.out.println(Thread.currentThread().getId()+"==睡眠前=="+stageDuring); Thread.sleep(10*10
2021-10-23 17:51:10
4326
原创 spring-cloud-kubernetes视频教程
一、视频地址https://edu.csdn.net/course/detail/35861关于收费问题:本人也是想了很久,有一段时间也想完全免费,但是后来综合考虑还是收费了。不过针对想学习但是经济有压力的小伙伴们(只针对在校大学生),可以联系我报销,联系邮箱:2414931908@qq.com二、基本概念简介2.1什么是K8s官网地址:https://kubernetes.io/zh/其实k8s是kubernetes的简称,因为“k”和“s”中间有八个字母,所以简称“k8s
2021-09-12 16:50:31
590
原创 Jenkinsfile自定义全局变量
在steps里面定义一个script标签,无需定义,直接使用即可,下面是pipeline示例:pipeline { agent { node { label 'maven' } } parameters { string(name:'TAG_NAME',defaultValue: 'v1.0',description:'') choice(name: 'APP_NAME', choices: ['gateway', 'sso
2021-08-11 11:25:49
2602
原创 搭建kubenates-err1
异常内容:W0801 09:20:29.965243 2958 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.[preflight] Running pre-flight checks [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as
2021-08-01 17:31:39
444
原创 rabbitmq使用docker从安装到Java第一个rabbit_demo
1.docker安装和运行1.1下载镜像docker pull rabbitmq:3.7.7-management1.2运行起来docker run -d --name myrabbitmq -p 5672:5672 -p 15672:15672 -v `pwd`/data:/var/lib/rabbitmq --hostname myRabbit \ -e RABBITMQ_DEFAULT_VHOST=my_vhost -e RABBITMQ_DEFAULT_USER=admin -e RAB
2021-07-06 21:38:33
268
2
原创 手动双面打印机-打印规则
手动双面打印机,需要记住规则,反了就不行,需要严格遵守:1.文档总数:a、奇数页===》 必须先打印奇数,再打印偶数,第一页的第二面空白;b、偶数页===》 必须先打印偶数,再打印奇数,没有空白页;2.针对一个文档多份打印:1.a情况===》 每份去掉第一页,或者第一页最后打印;打印完奇数,再多份偶数同时打印;1.b情况===》 可以直接连打,只需要记住先偶再奇就行;...
2021-07-03 14:02:26
7394
原创 javax.jms.JMSException: Failed to create session factory
异常信息:14:49:58.273 [RMI TCP Connection(3)-192.168.134.1] WARN o.s.b.actuate.jms.JmsHealthIndicator - JMS health check failedjavax.jms.JMSException: Failed to create session factory at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.crea
2020-12-25 14:53:01
4408
原创 联想 Lenovo 小新Pro-13ARE 2020 笔记本电脑 评测
基本信息:电脑型号 联想 Lenovo 小新Pro-13ARE 2020 笔记本电脑操作系统 Windows 10 64位 ( DirectX 12 )处理器 AMD Ryzen 7 4800U with Radeon Graphics 八核主板 联想 LNVNB161216 ( AMD PCI 标准主机 CPU 桥 )内存 16 GB ( DDR4 3200MHz )主硬盘 UMIS RPITJ512VME2OWD ( 512 GB / 固态硬盘 )主显卡 AMD Radeon Graph
2020-12-06 16:40:43
22001
1
原创 Unsatisfied dependency expressed through field ‘authorizationServerTokenServices‘
使用SpringSecurityOauth2启动异常:ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘openId
2020-12-03 14:57:22
1619
转载 Java Lambda表达式笔记list常用操作
一、基础知识1.是什么?Lambda 表达式,也可称为闭包,它是推动 Java 8 发布的最重要新特性。Lambda 允许把函数作为一个方法的参数(函数作为参数传递进方法中)。使用 Lambda 表达式可以使代码变的更加简洁紧凑。知名大神博客,可以直接跳到大神博客学习。2. Lambda 表达式实例// 1. 不需要参数,返回值为 5() -> 5// 2. 接收一个参数(数字类型),返回其2倍的值x -> 2 * x// 3. 接受2个参数(数字),并返回他们的差值(
2020-11-30 21:50:38
916
原创 openfeign 找不到 @FeignClient 注册的组件
标题@EnableFeignClients注解注意该注解使用时请注意,如果在子包中使用,一定将Application类拿到外面,否则报找不到@FeignClient注册组件报错openfeign默认不支持Get请求,可以使用以下配置:
2020-11-15 00:46:53
711
原创 ConflictingBeanDefinitionException: Annotation-specified bean name ‘imageLoader‘ for bean class [com
异常信息:org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘imageLoader’ for bean class [com.sun.javafx.tk.ImageLoader] conflicts with existing, non-compatible bean definition of same name and class [com
2020-11-14 22:55:57
741
原创 Consider defining a bean of type ‘java.util.List‘ in your configuration.
异常信息:[zxl-sso-server:192.168.1.157:3333:dev] 2020-11-14 18:02:27.897 WARN 6472 [restartedMain][558][refresh] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext Exception encountered during context initialization
2020-11-14 18:09:23
8591
原创 新版MySQL ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
新版本MySQL8.0最近的版本设置密码,要求会更加严格很多博客提到set global validate_password.length=1;set global validate_password.policy=0;但是现在仍旧不好使因为还有几项没有修改,可以先使用命名查看一下://如果没有先配好root的密码,使用初始密码是无法查看对应的参数的。所以还是要先设置一个麻烦一点的密码,重启数据库,命令在后面:SHOW VARIABLES LIKE ‘validate_password%’;
2020-11-11 23:41:32
155
原创 nested exception is java.lang.IllegalStateException: Can‘t configure antMatchers after anyRequest
错误信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘springSecurityFilterChain’ defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean
2020-11-04 17:40:17
2670
原创 Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi
错误信息:org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.SsoServerApplication]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframe
2020-11-04 17:30:46
12359
【CUDA12.8环境】适用于vllm的大规模语言模型Docker镜像部署与测试:含详细命令及服务启动流程内容
2025-05-10
基于djando的ocr docker镜像 生产级别
2022-05-09
安卓adb无线调试(自始至终都不需要手机和电脑usb连接)
2024-04-05
gitpython实现window双击exe程序,自动提交git远程仓库,需要编辑配置文件
2023-04-30
seata1.3.0完整demo
2022-08-06
Q&Q HG08-204说明书中文版
2022-07-12
解决笔记本风扇声音大问题
2022-05-14
省市地区及6位编码(附身份证号校验程序)
2022-05-12
Axure RP Extension for Chrome 0.6.3
2022-04-23
OSError: [WinError 126] geos_c.dll
2022-02-11
JS实现loading效果(不需要引入任何文件,一个html,几行代码。)
2019-06-18
JavaScript操作Excel_Demo.zip
2020-04-21
父组件向子组件传值(双向数据传输).html
2019-10-25
activemqmqttdemo1.zip
2020-04-26
SpringBoot-Maven-Thymeleaf完整博客系统(包含前后台数据库,拿过去就能直接用).txt
2019-08-20
SpringBoot邮件发送-maven项目-对应源码
2019-03-29
org.dadacoalition.yedit_1.0.20.201509041456-RELEASE.zip
2020-04-20
子组件向父组件传值.html
2019-10-25
父组件向子组件传值.html
2019-10-25
Layui省市区三级联动城市选择实现Demo.txt
2020-01-04
Java-flink的sum方法输出
2022-06-05
TA创建的收藏夹 TA关注的收藏夹
TA关注的人