显卡驱动安装和深度学习环境搭建,可以参考笔者的文章: https://www.whuanle.cn/archives/21624 https://torch.whuanle.cn/01.base/01.env.html Testing Environment AMD EPYC 7V13 64-Core 24 Cores 220GB RAM NVIDIA A100 80GB PCIe Download and Install Ollama Open https://ollama.com/, and simply do…

2025年2月4日 0条评论 1176点热度 5人点赞 痴者工良 阅读全文

显卡驱动安装和深度学习环境搭建,可以参考笔者的文章: https://www.whuanle.cn/archives/21624 https://torch.whuanle.cn/01.base/01.env.html 测试环境 AMD EPYC 7V13 64-Core 24核 220GB 内存 NVIDIA A100 80GB PCIe 下载安装 ollama 打开 https://ollama.com/,直接下载安装即可。 配置 ollama 有三个环境变量要配置。 # api 服务监听地址 OLLAMA_H…

2025年2月4日 0条评论 21798点热度 5人点赞 痴者工良 阅读全文

In the multithreading column, knowledge related to C# timers has been written, but the content is not very complete. Recently, I have deepened some understanding, and I will make some notes. https://threads.whuanle.cn/1.thread_basic/3.pool.html#%E8%AE%A1%E6%97…

2025年1月3日 0条评论 1162点热度 2人点赞 痴者工良 阅读全文

在多线程专栏中编写了 C# 定时器相关知识,但是内容不是很完善,近期加深了一些认识,顺便做一下笔记。 https://threads.whuanle.cn/1.thread_basic/3.pool.html#%E8%AE%A1%E6%97%B6%E5%99%A8 这里不提桌面里面的定时器,只讨论 .NET 本身的定时器,有: System.Threading.Timer System.Timers.Timer PeriodicTimer System.Threading.Timer 是 .NET 中的基础定时器,…

2025年1月3日 0条评论 2509点热度 2人点赞 痴者工良 阅读全文

Serilog: Using: - "Serilog.Sinks.Console" MinimumLevel: Default: Information Override: Microsoft.AspNetCore.HttpLogging: Information ProtoBuf.Grpc.Server.ServicesExtensions.CodeFirstServiceMethodProvider: Warning Microsoft.EntityFrameworkCore: Inform…

2024年12月30日 0条评论 142点热度 1人点赞 痴者工良 阅读全文

通用模板如下: Serilog: Using: - "Serilog.Sinks.Console" MinimumLevel: Default: Information Override: Microsoft.AspNetCore.HttpLogging: Information ProtoBuf.Grpc.Server.ServicesExtensions.CodeFirstServiceMethodProvider: Warning Microsoft.EntityFrameworkCore: Informat…

2024年12月30日 0条评论 1396点热度 1人点赞 痴者工良 阅读全文

教程名称:Getting Started with Deep Learning Using C# 作者:whuanle 地址: https://torch.whuanle.cn 1.2 Basic of Pytorch This section introduces the basic API of Pytorch, primarily focusing on how to create and manipulate arrays. Since the content is quite similar to Num…

2024年11月12日 1条评论 174点热度 2人点赞 痴者工良 阅读全文

教程名称:使用 C# 入门深度学习 作者:痴者工良 地址: https://torch.whuanle.cn 1.2 Pytorch 基础 本文内容介绍 Pytorcn 的基础 API,主要是数组的创建方式和运算方式,由于相关内容跟 Numpy 比较相似,并且 Numpy 类型可以转 torch.Tensor,因此对 Numpy 感兴趣的读者可以参考笔者的其它文章: Python 之 Numpy 框架入门 https://www.whuanle.cn/archives/21461 https://www.cnblo…

2024年11月12日 1条评论 2363点热度 2人点赞 痴者工良 阅读全文

学习模型开发时,搭建环境可能会碰到很多曲折,这里提供一些通用的环境搭建安装方法,以便读者能够快速搭建出一套 AI 模型开发调试环境。 Installing Graphics Card Drivers and Development Libraries This article only covers the installation method for NVIDIA graphics card drivers. There are multiple series of NVIDIA graphics cards,…

2024年9月1日 2条评论 114点热度 2人点赞 痴者工良 阅读全文

学习模型开发时,搭建环境可能会碰到很多曲折,这里提供一些通用的环境搭建安装方法,以便读者能够快速搭建出一套 AI 模型开发调试环境。 安装显卡驱动和开发库 本文只讲述 NVIDIA 显卡驱动的安装方法。 NVIDIA 显卡有多个系列,常用的有 Tensor 和 GeForce RTX 系列,两类显卡的驱动安装方式不一样,下面的章节会单独介绍如何安装驱动。 第一步,检测电脑是否正确识别显卡或已安装驱动。 打开设备管理器,点击 显示适配器 ,查看设备列表是否存在显卡。 如果电脑已经识别出显卡,可以通过 NVIDIA G…

2024年9月1日 2条评论 4134点热度 2人点赞 痴者工良 阅读全文

项目中使用 Grpc 时,由于有大量 Proto,会导致引入的时候需要配置大量文件,因此需要批量导入。 假如有目录: servicea serviceb 只想引入 servicea 的 proto 文件,则: <ItemGroup> <Protobuf Include="..\test\servicea\**\*.proto"> <ProtoRoot>..\..\..\..\x\proto</ProtoRoot> <Link>servi…

2024年8月28日 0条评论 142点热度 0人点赞 痴者工良 阅读全文

项目中使用 Grpc 时,由于有大量 Proto,会导致引入的时候需要配置大量文件,因此需要批量导入。 假如有目录: servicea serviceb 只想引入 servicea 的 proto 文件,则: <ItemGroup> <Protobuf Include="..\test\sericea\**\*.proto"> <ProtoRoot>..\..\..\..\x\proto</ProtoRoot> <Link>sericea\%(Filena…

2024年8月28日 0条评论 2752点热度 0人点赞 痴者工良 阅读全文

Differential Mean Value Theorem involves several important theorems: Rolle's Theorem Lagrange's Mean Value Theorem Cauchy's Mean Value Theorem L'Hôpital's Rule Reference: https://www.hanspub.org/journal/PaperInformation?paperID=33661 Rolle's Theorem Theorem 1 …

2024年8月13日 0条评论 136点热度 0人点赞 痴者工良 阅读全文

微分中值定理,涉及了多个重要的定理: 罗尔定理 拉格朗日中值定理 柯西中值定理 洛必达法则 参考资料:https://www.hanspub.org/journal/PaperInformation?paperID=33661 罗尔定理 定理1 (Rolle) 设函数 f(x) 满足: (1) 在 [a,b] 上连续; (2) 在 (a,b) 内可导; (3) f(a)=f(b), 则存在 ξ∈(a,b) 使得 f′(ξ)=0 。 罗尔定理的几何意义:两端点处高度相等的光滑曲线内必有一点处的切线与x-轴平行。 也就…

2024年8月13日 0条评论 3070点热度 0人点赞 痴者工良 阅读全文

When a field is of object type, System.Text.Json automatically sets it to the JsonElement type instead of the corresponding type, leading to strange issues in many cases. Therefore, there are two places where code needs to be added to alleviate this situation.…

2024年7月10日 0条评论 144点热度 0人点赞 痴者工良 阅读全文

当一个字段为 object 类型时,System.Text.Json 自动设置 JsonElement 类型,而不是对应的类型,因此在很多情况下会出现奇怪的问题。 因此这里只要有两个地方加上代码,缓解这一情况。 第一步,实现转换器,当一个类型是 object 时,如果 json 是简单类型,则直接使用实际类型,而不是 JsonElement。 但是当字段是字典、数组,如 object[],T[] 但是 T 中有 object 字段 等情况时,这里是无效的。 public class ObjectJsonSerial…

2024年7月10日 0条评论 2895点热度 0人点赞 痴者工良 阅读全文

Logging Tips in .NET Serilog Serilog is the most widely used logging framework in the .NET community, so I'll dedicate a section to explain how to use it. The example project is in Demo2.Console. Create a console application and include the following two packa…

2024年6月18日 0条评论 146点热度 1人点赞 痴者工良 阅读全文

.NET 中的日志使用技巧 Serilog Serilog 是 .NET 社区中使用最广泛的日志框架,所以笔者使用一个小节单独讲解使用方法。 示例项目在 Demo2.Console 中。 创建一个控制台程序,引入两个包: Serilog.Sinks.Console Serilog.Sinks.File 除此之外,还有 Serilog.Sinks.Elasticsearch、Serilog.Sinks.RabbitMQ 等。Serilog 提供了用于将日志事件以各种格式写入存储的接收器。下面列出的许多接收器都是由更广…

2024年6月18日 0条评论 3682点热度 1人点赞 痴者工良 阅读全文

Document Explanation Author: whuanle Document URL: https://mmq.whuanle.cn Repository URL: https://github.com/whuanle/Maomi.MQ Author's Blog: https://www.whuanle.cn https://www.cnblogs.com/whuanle Introduction Maomi.MQ is a message communication model project t…

2024年6月13日 0条评论 166点热度 0人点赞 痴者工良 阅读全文

文档说明 作者:痴者工良 文档地址:https://mmq.whuanle.cn 仓库地址:https://github.com/whuanle/Maomi.MQ 作者博客: https://www.whuanle.cn https://www.cnblogs.com/whuanle 导读 Maomi.MQ 是一个消息通讯模型项目,目前只支持了 RabbitMQ。 Maomi.MQ.RabbitMQ 是一个用于专为 RabbitMQ 设计的发布者和消费者通讯模型,大大简化了发布和消息的代码,并提供一系列简便和实用的…

2024年6月13日 0条评论 5991点热度 0人点赞 痴者工良 阅读全文
1234554