自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(272)
  • 收藏
  • 关注

原创 工具测试 - marker (Convert PDF to markdown + JSON quickly with high accuracy)

Marker是一款开源免费的PDF文本提取工具,集成OCR模型Surya和多GPU推理能力。安装仅需pip install marker-pdf,使用简单高效,32页文档1.4万字处理仅需152秒(约92字/秒)。支持表格识别、多语言OCR,可通过LLM优化结果,并兼容多GPU并行处理。提供交互式Streamlit界面,支持输出markdown/json/html等格式,支持页面范围选择、强制OCR等参数配置。适合处理数字/扫描PDF文档,默认使用4090显卡(每进程峰值5GB显存)。开发者可直接调用Pyt

2025-08-17 18:37:41 1201

原创 一张图总结 - AI代理上下文工程:构建Manus的经验教训

AI代理的上下文工程实践:Manus项目经验总结 本文分享了Manus项目在AI代理开发中的实践经验。团队选择基于上下文学习而非微调模型,以加速迭代速度。关键发现包括:1)KV缓存命中率对代理性能至关重要,需保持提示稳定和上下文追加;2)通过遮蔽而非移除工具来优化动作选择;3)利用文件系统作为扩展上下文;4)保留错误内容以提升自我修正能力;5)避免少样本提示的局限性。这些原则表明,良好的上下文设计比模型能力更能决定代理的实际表现,上下文工程已成为智能体开发的核心技术。

2025-08-17 14:55:20 209

原创 Apple 开源工具 - Embedding Atlas 的测试体验

Embedding Atlas 是一个专门用于大规模嵌入向量交互式可视化的工具,能够帮助用户直观地探索和分析高维数据的分布模式和聚类结构。

2025-08-17 11:18:30 1084

原创 LLM 模型量化推理速度评测

1、compile 整个模型后的模型确实更快了,如果只compile attention部分加速不大,因为compile优化的空间并不大。2、投机采样测试过程中发现多卡推理 int4 模型出现报错,int8模型没有问题,这个目前没空看了。公众号"小晨的AI工作室"回复: "vllm_test" 获得原图,测试不易,希望点点关注哈~3、量化确实会带来速度的巨大提升,但是模型效果截图不太方便,效果确实降低了一些。4、AWQ量化后的千问7B模型,效果巨差,暂不确定问题在哪,目测了效果。

2024-03-05 21:08:48 1632

原创 一张图系列 - “leetcode快速复习“

适合、临时抱佛脚~

2023-12-15 20:25:03 224

原创 一张图系列 - “position_embedding”

总之,Positional encoding为transformer模型提供了顺序信息,是实现transformer表征能力的重要组成部分。在 transformer 模型中,由于attention机制是并行计算的,输入的词向量不包含顺序信息,需要positional encoding来表示单词位置。Positional encoding 是在 transformer 模型中用于表示单词位置信息的一种技术。通过在词向量中加入位置信息,可以帮助注意力机制学习句子中单词的相关程度。位置邻近的单词更可能有关联。

2023-11-15 20:52:36 400

原创 一张图系列 - “kv cache“

kv cache 的原理是什么?它的代码是如何实现这些细节的?

2023-10-28 16:01:40 1034

原创 一张图系列 - “CausalSelfAttention”

CausalSelfAttention的原理&代码分析

2023-10-28 15:18:02 668 1

原创 CLIPasso 论文分享&体验笔记

CLIPasso 获得了2022年的SIGGRAPH最佳论文奖

2023-02-05 17:19:35 1539

原创 html + css + js 基础

一个最简单最简单的备忘录,点击添加新增,点击条目进行删除

2022-08-15 11:03:37 224

原创 html + css 基础

html + css 练习

2022-08-15 10:46:36 225

原创 html -> 简易网页框

html -> 简易网页框

2022-08-09 11:14:47 271

原创 html->课程表

html

2022-08-09 11:00:18 390

原创 html & css 常识1

html & css 常识

2022-08-08 10:59:06 150

原创 Headed-Span-Based Projective Dependency Parsing

学习ACL2022论文地址:https://arxiv.org/abs/2108.04750code地址:​​​​​​https://github.com/sustcsonglin/span-based-dependency-parsing这个论文确实不错建议阅读:We propose a new method for projective dependency parsing based on headed spans. In a projective dependency tre

2022-05-02 22:18:03 278

原创 sanic & flask & fastapi 对比

代码:from flask import Flaskapp = Flask(__name__)@app.route("/")def hello_world(): return "hello, flask!"if __name__ == "__main__": app.run(host="127.0.0.1", port=8080)# -----from sanic import Sanicfrom sanic.response import jsonap

2022-04-18 00:13:14 4353

原创 golang tollbooth 中间件 & 压测工具 vegeta

参考:1、[译] Go 中基于 IP 地址的 HTTP 限流2、Tollbooth - Fasthttp integration layer3、didip/tollbooth Simple middleware to rate-limit HTTP requests4、valyala / fasthttp Fast HTTP package for Go5、uber-go / ratelimit6、ulule / limiter-examples - 法国众筹公司🤦🏻‍♀️7、t

2022-04-16 17:01:20 917

原创 记录两个小工具 - Hydra & Wandb

【1】Getting started | Hydra【2】Weights & Biases - DocumentationGitHub - wandb/client: 🔥 A tool for visualizing and tracking your machine learning experiments. This repo contains the CLI and Python API.

2022-03-20 21:31:54 349

原创 咖喱鸡 & 程序员 & 代码

如图所示:视频如下:​​​​​​咖喱鸡饭 - 这样做简直太香啦_哔哩哔哩_bilibili

2022-03-02 18:34:02 211

原创 Iterative Depth First Traversal of Graph

C++ -> DFS 【1】#include <list>#include <stack>#include <vector>#include <iostream>using namespace std;class Graph { int V; list<int> *adj;public: explicit Graph(int V); void addEdge(int v, int w)

2022-02-27 00:56:12 188

原创 explicit 用法提醒

参考链接:C++ 关键字 explicit 的使用隐式转换,如何消除隐式转换?Clion提示:Single-argument constructors must be marked explicitly to avoid unintentional implicit conversions 解法办法https://www.cplusplus.com/doc/tutorial/typecasting/什么时候会 explicit:C++面向对象的多态特性,就是通过父类的类型实现对子

2022-02-07 00:00:36 577

原创 Find if there is a path between two vertices in an undirected graph

如图:python bfs 预热 (简单粗暴)# 无向图的的两个节点是否相连 ~ :from collections import dequedef addEdge(v, w): global adj adj[v].append(w) adj[w].append(v)def isReachable(s, d, V): if (s == d): return True visited = [False for i in range

2022-02-06 01:12:27 678

原创 Find if there is a path between two vertices in a directed graph

基础遍历预热#include <iostream>#include <vector>#include <stack>#include <algorithm>using namespace std;struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x): val(x), left(nullptr), right(..

2022-02-04 19:05:10 769

原创 7 Class Templates array and vector; Catching Exceptions

目录:array -> Sorting and searching arrays. vector -> Demonstrating C++ Standard Library class template vector.1. array -> Sorting and searching arrays.// array -> sorting and searching#include <iostream>#include <iomanip>

2021-12-18 10:58:55 925

原创 检查_有向图&无向图中的环

目录:有向图中检查环 python(递归,迭代) c++ 无向图中检查环 python(递归,迭代) c++ 1.1 python 递归: 有向图中环检测:核心思想是检测节点的邻居是否再已有的stack里面from collections import defaultdict# 有向图查环class UGraph: "undirected graph recursion" def __init__(self, vertices): s

2021-12-17 14:10:09 1966

原创 6 Functions and an Introduction to Recursion

目录:1、maximum function with a function prototype.2、Shifted, scaled integers produced by 1 + rand() % 6.3、Demonstrating srand (随机种子)4、Random Number (优点)5、Inline Functions6、References and Reference Parameters7、Using default arguments8、Unary sc

2021-12-14 13:47:15 204

原创 5 Control Statements: Part 2; Logical Operators

概述:Chapter 4 discussed if, if…else and while. This chapter demonstrated for, do…while and switch.You used the break statement to exit a switch statement and to immediately terminate a loop, and used a continue statement to terminate a loop’s current ..

2021-12-11 19:24:59 510

原创 4 A lgorithm Development and Control Statements: Part 1

1、Only three types of control statements—sequence, selection and iteration—are needed to develop any algorithmmain.cpp#include <iostream>#include <iomanip>using namespace std;int main() { int total{0}; unsigned int gradeCoun..

2021-12-11 16:31:13 507

原创 3 Introduction to Classes, Objects, Member Functions and Strings

目录:1、created your own classes and member functions2、create UML class diagrams that model the member functions, attributes and constructors of classesAccount.h#ifndef UNTITLED1_ACCOUNT_H#define UNTITLED1_ACCOUNT_H#include <string>#incl

2021-12-11 15:55:13 239

原创 cmake - 02 - subprojects

参考链接????:GCC全过程详解+剖析生成的.o文件CMAKE 里PRIVATE、PUBLIC、INTERFACE属性示例详解cmake:target_** 中的 PUBLIC,PRIVATE,INTERFACE1. 指令说明target_include_directories():指定目标包含的头文件路径。官方文档target_link_libraries():指定目标链接的库。官方文档target_compile_options():指定目标的编译选项。官方文档目标 由

2021-10-21 07:31:54 255

原创 cmake - 01K - imported-targets

目录:文件:run_test.sh#!/bin/bashcmake_version=`cmake --version | grep version | cut -d" " -f3`[[ "$cmake_version" =~ ([3-9][.][5-9.][.][0-9]) ]] || exit 0echo "correct version of cmake"mkdir -p build && cd build && cmake .. &am

2021-10-21 06:25:12 336

原创 cmake - 01H - third_party_library

目录:文件:main.cpp#include <iostream>#include <boost/shared_ptr.hpp>#include <boost/filesystem.hpp>int main(int argc, char *argv[]){ std::cout << "Hello Third Party Include!" << std::endl; boost::shared_ptr

2021-10-16 16:42:14 212

原创 cmake - 01E - installing

目录:(base) ➜ cmaker_learning tree.├── CMakeLists.txt├── build├── cmake-examples.conf├── include│ └── installing│ └── Hello.h└── src ├── Hello.cpp └── main.cpp4 directories, 5 files文件:与之前相同重点是 CMakeLists.txtcmake_min...

2021-10-16 13:41:25 162

原创 cmake - 01D - shared-library

动态链接目录:文件:Hello.h#ifndef CMAKER_LEARNING_HELLO_H#define CMAKER_LEARNING_HELLO_Hclass Hello{public: static void print();};#endif //CMAKER_LEARNING_HELLO_HHello.cpp#include <iostream>#include "../include/shared/Hello.h"u.

2021-10-16 12:18:47 106

原创 cmake - 01C - static-library

目录结构文件:Hello.h#ifndef CMAKER_LEARNING_HELLO_H#define CMAKER_LEARNING_HELLO_Hclass Hello{public: void print();};#endif //CMAKER_LEARNING_HELLO_HHello.cpp#include <iostream>#include "static/Hello.h"using namespace std;vo

2021-10-16 11:49:22 104

原创 cmake - 01 - hello-headers

目录:cmake 复习一下文件结构:(两个实验)文件内容:Hello.h#ifndef CMAKER_LEARNING_HELLO_H#define CMAKER_LEARNING_HELLO_Hclass Hello{public: void print();};#endif //CMAKER_LEARNING_HELLO_HHello.cpp#ifndef CMAKER_LEARNING_HELLO_H#define CMAKE.

2021-10-16 11:09:48 144

原创 20 - searching and sorting

Binary search xx1. Binary searchBinarySearch.cpp//// Created by on 2021/7/28.//// BinarySearch#include <algorithm>#include <array>#include <ctime>#include <iostream>#include <random>using namespace std

2021-07-29 07:50:19 171

原创 19 - Custom Templatized Data Structure

目录:1. List1. List 定义//// Created by on 2021/7/23.//#ifndef PRACTICE15_LIST_H#define PRACTICE15_LIST_H#include <iostream>#include "ListNode.h"using namespace std;template<typename NODETYPE>class List{public: bool isE

2021-07-23 16:32:59 152

原创 17 Exception Handling

目录:example that throw exception Rethrowing an exception xxx xx xxx xxx xx1.example that throw exception// example that throw exception#include <iostream>#include "DivideByZeroException.h"using namespace std;double quotient(i...

2021-05-16 09:13:24 162

原创 16 Standard Library Algorithms

目录:lambda expressions xxxx xx xxx xxx1.lambda expressions// lambda expressions#include <iostream>#include <array>#include <algorithm>#include <iterator>using namespace std;int main() { const siz...

2021-05-04 16:05:49 177

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除