👋 Welcome to my log

道阻且长 行则将至

vLLM是个啥?好吃吗?

参考资料:https://zhuanlan.zhihu.com/p/691038809 我先尝尝😋 作为一个从没有听说过vLLM的人来说,了解一个新东西最好的方式就是打开它的文档。 点击https://docs.vllm.ai/,映入眼帘的是: 你注意到了这句话: vLLM is a fast and easy-to-use library for LLM inference and serving. 来自谷歌翻译:vLLM 是一个快速且易于使用的 LLM 推理和服务库。 ...

June 29, 2025 · 4 min · 1577 words · liuzifeng

Rust笔记--002 基础入门(中)

学习参考:https://course.rs/basic/intro.html 1.1 模式匹配 match匹配 通用形式 match target { 模式1 => 表达式1, 模式2 => { 语句1; 语句2; 表达式2 }, _ => 表达式3 } 示例 enum Direction { East, West, North, South, } fn main() { let dire = Direction::South; match dire { Direction::East => println!("East"), Direction::North | Direction::South => { println!("South or North"); }, _ => (), }; } 或 fn main() { let dire = Direction::South; match dire { Direction::East => println!("East"), Direction::North | Direction::South => { println!("South or North"); }, other => (), }; } 注: ...

June 22, 2025 · 7 min · 3077 words · liuzifeng

Rust笔记--001 基础入门(上)

学习参考:https://course.rs/basic/intro.html 1.1 变量 变量绑定 let a = "hello world" rust最核心的原则:所有权 所有权,简单来讲,任何内存对象都是有主人的,绑定是把"hello world"绑定给一个变量a,让a成为"hello world"的主人 变量的可变性 rust变量在默认情况下是不可变的 通过mut关键字将变量变为可变的 let mut a = 5; a = 6; 创建一个变量却不适用,用下划线_,在模式匹配会用到 let _a = 5; 变量解构 从一个相对复杂的变量中,匹配出该变量的一部分 ...

June 7, 2025 · 21 min · 10288 words · liuzifeng

leetcode88 合并两个有序数组

链接:https://leetcode.cn/problems/merge-sorted-array/ 题目 给你两个按 非递减顺序 排列的整数数组 nums1 和 nums2,另有两个整数 m 和 n ,分别表示 nums1 和 nums2 中的元素数目。 请你 合并 nums2 到 nums1 中,使合并后的数组同样按 非递减顺序 排列。 ...

May 18, 2025 · 1 min · 383 words · liuzifeng

浅尝英语语法

学习参考:https://hzpt-inet-club.github.io/english-note/guide/grammar.html 1.词性 句子的组成部分 主谓宾句型 -> I hit you I -> 主 hit -> 谓 you -> 宾 十大词性 单词是句子的最小组成部分,每个单词都有词性 代词pron. 指代某个名词的词 数词num. 跟数字有关的词 ...

May 17, 2025 · 1 min · 381 words · liuzifeng