- 博客(48)
- 收藏
- 关注
原创 gitlab two-factor authentication
step2:用Authenticator扫描gitlab two-factor authentication页面的二维码,就会出现一次性验证码,输入到页面中验证一下即可登录;step1:手机上下载一个“Authenticator”;
2026-03-09 18:06:52
117
原创 openclaw helloworld 20260304
看了很多帖子,关注点都不一样,操作系统(Windows/macos/linux)、各种软件和依赖版本(openclaw,飞书插件,nodejs)、安装方式(curl, npm, pnpm)等,还得自己踩一遍坑,记录一下。。。
2026-03-04 16:29:59
849
原创 git sparse-checkout, 只拉取部分目录
git clone命令中,–no-checkout表示不检出,即先不拉取文件;–filter=blob:none 只下载必要meta数据,进一步减少下载量;–depth=1 限制git历史信息,进一步减少下载量;
2025-12-04 18:38:06
212
原创 RL&Agent note
llama_cpp.Llama直接加载bin模型文件会报错:“gguf_init_from_file: invalid magic characters”,需要先把bin文件转换成gguf格式的模型文件,这边用。CUDA版本12.X:nvcc -V。
2025-04-10 18:01:10
493
原创 LLM相关代码笔记
可以看到,attn_weights = attn_weights + causal_mask, 通过加上causal_mask,把后面的token变为一个很大的负数,softmax后系数为0,从而实现mask掉后面的token。所以在save时,也要去掉’default’,save_pretrain调用了get_peft_model_state_dict函数,会去掉’default’自定义一个加score_head的RM,保存时需额外加上score_head。
2025-04-10 17:42:40
659
原创 Preference Optimization【ing】
LDPO(θ)=−E(x,yw,yl)∼D[logσ(βlogπθ(yw∣x)πref(yw∣x)−βlogπθ(yl∣x)πref(yl∣x))]\mathcal L_{DPO}(\theta)=-\mathbb E_{(x,y_w, y_l)\sim D}\left[\log\sigma\left(\beta\log\frac{\pi_\theta(y_w|x)}{\pi_\mathrm{ref}(y_w|x)}-\beta\log\frac{\pi_\theta(y_l|x)}{\pi_\mat
2025-04-10 17:40:20
877
原创 VSCode远程调试python
1,进入到服务器相应的docker和conda环境中。7,设置断点,点击运行按钮,即可debug。3,VSCode 中点击调试按钮。5,配置launch.json。2,安装debugpy。4,按照提示,安装扩展。
2023-09-07 17:31:04
1501
原创 opencv
python 安装依赖:1,python:python3,numpy2,libGL.so.1:sudo apt-get install -y libgl1-mesa-dev(否则会报错)
2022-04-21 20:28:21
3256
转载 TensorFlow只用CPU
转自https://www.cnblogs.com/excellent-ship/p/8604941.html限制TensorFlow只在CPU上运行的方法import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"os.environ["CUDA_VISIBLE_DEVICES"] = "-1"注:上述代码一定要放在import tensorflow或keras等之前,否则不起作用。...
2020-06-11 10:54:37
843
1
原创 transformer assemble
(草稿)1,Learning method: continual learningERNIE2.02,Pre-training method: SOP,DLM3,Pre-training corpus:4,Data Augme:5,memory/params/EPOCHS:5.1,distill:TinyBERT5.2,pruning:adaptive span,...
2020-03-14 22:49:34
213
原创 tensorflow2.0-gpu install note
1, cuda10.1tf2.0 不支持cuda10.1,用conda重新安装cuda和cudnn:wgethttps://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64/cudnn-7.6.4-cuda10.0_0.tar.bz2wgethttps://mirrors.tuna.tsinghua.edu.cn/a...
2020-01-01 16:29:25
201
原创 linux 源码安装 tensorflow C++
系统:Ubuntu16.04TensorFlow1.4g++: 5.4.0bazel: 0.5.41,下载TensorFlow源代码git clone https://github.com/tensorflow/tensorflow.gitgit checkout r1.4 # 切换到所要编译的版本分支2,安装bazelbazel的版本太高太低都会有问题,可以查看tensorflow/tensor...
2018-06-15 11:42:25
3429
3
原创 ubuntu gdb 调试 c++
1,安装gdbsudo apt-get install gdb2,准备好代码test.cpp,编译:g++ test.cpp -o test -g3,调试,输入gdb命令设断点:b main // 在main函数前打断点b 11 // 在11行打断点d // 清楚断点c // continues // step inton // nextp val // print val 的值命令 解释 示例f...
2018-03-08 16:22:25
1553
原创 mac term2 登录Ubuntu服务器 中文乱码问题
1,安装中文包sudo apt-get -y install language-pack-zh-hans language-pack-zh-hans-base2,配置vim ~/.zshrc 添加:export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8source ~/.zshrc
2018-03-08 12:01:01
266
原创 用supervisor+nginx部署服务的流程
以chat_service为例:1,将项目拷贝至某一路径2,更改supervisor配置文件:supervisor.conf(一般在/etc/目录下)在/etc/supervisor.d/目录下新建chat_service.conf配置文件,如下:[program:chat_service]command=/usr/local/bin
2017-10-10 16:31:14
3556
原创 CentOS6.8装tensorflow1.0
折腾了好几天,终于在服务器上装好了tensorflow。服务器一般喜欢装老版本的centOS6,很多库的版本很旧,导致装tensorflow过程中遇到各种坑,记录一下。配置:系统CentOS6.8,python 2.7.12,用源码方式装tensorflow1.0。直接用pip安装tensorflow,出现了这三个问题:1,GLIBC_2.16 not found2,GLI
2017-05-23 16:58:26
470
原创 vmware12 win10 ubuntu15 共享文件
试了两天,一直失败,重装vmware-tools无数遍,还是不出现共享文件夹。试着运行usr/bin下的./vmware-config-tools.pl,其中,有几个地方需要选择yes(默认是no选项):The VMware Host-Guest Filesystem allows for ... Do you wish to enable this feature?[No] ,选yes。
2017-02-06 18:22:40
809
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅