分类 Study 下的文章

手机远程操作本机终端:Remote Claude Mobile Console 的设计与公网部署


手机远程操作本机终端:Remote Claude Mobile Console 的设计与公网部署一个自托管的单用户终端桥接系统:手机浏览器通过 WebSocket 连接到 Windows 电脑上的真实终端。它不绑定任何特定工具——Claude Code、git、npm、docker、ssh、python 等一切 CLI 程序都可以通过它操作,Claude Code 只是最典型的场景之一。本文介绍整体设计、消息协议、鉴权体系,以及基于 Laravel 管理员网关 + Nginx auth_request + FRP 内网穿透的公网部署方案。1. 项目定位Remote Claude Mobile Console 解决的是一个具体问题:终端会话运行在本机 Windows 电脑上,但使用者不在电脑前,需要通过手机继续操作。常见替代方案的局限:远程桌面类工具(如 Tea...

-bash: conda: command not found


(base) root@53e0879f8237:~# vim ~/.bashrc # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/xxx/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/xxx/anaconda3/etc/profile.d/conda.sh" ]; then . ...

Git创建本地分支并推送至远程仓库建立关联


老是忘,记一下吧创建 git 仓库:mkdir xxx cd xxx git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/fmujie/xxxx.git git push -u origin "master"已有仓库,只需与远程建立连接cd existing_git_repo git remote add origin https://gitee.com/fmujie/xxx.git git push -u origin "master"以下参考自:Git本地创建分支并推送到远程 - 简书 (jianshu.com)1. 创建本地...

16、卷积残差模块算子融合


R-Drop: Regularized Dropout for Neural NetworksDropout is a powerful and widely used technique to regularize the training of deep neural networks. Dropout在训练和推理时存在不一致的问题(集成学习)R 对每个子模型的分布做一个KL散度import numpy as np def train_r_drop(ratio, x, w1, b1, w2, b2): # 输入复制一份 x = torch.cat([x, x], dim=0) layer1 = np.maximum(0, np.dot(w1, x) + b1) mask1 = np.random.binomial(1, 1...

召唤看板娘