摘要: 1、地址:https://github.com/THUDM/ChatGLM-6B/blob/main/ptuning/README.md 2、参数示例 PRE_SEQ_LEN=128 LR=2e-2 CUDA_VISIBLE_DEVICES=0 python3 main.py \ --do_trai 阅读全文
posted @ 2024-03-11 11:01 zhyemmmm 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1、实验室有一台带显卡的机器,能访问huggingface但访问不了Civitai,而Civitai上的模型多是webui训练来的也不能直接用到diffusers框架上,于是需要利用Colab把Civitai上的模型转化成diffusers可用再上传到huggingface上,再下载到本地。 2、g 阅读全文
posted @ 2023-06-20 15:56 zhyemmmm 阅读(1651) 评论(0) 推荐(0) 编辑
摘要: 1、nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; worker_rlimit_nofile 65536; events 阅读全文
posted @ 2021-05-20 17:19 zhyemmmm 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1、为了给同一个应用项目动态配置多个域名访问,把apache服务器换成了nginx,在/etc/nginx/conf.d/下配置域名命名的配置文件 #所有访问80端口的请求都重写到443 server { listen 80; server_name xxx.com www.xxx.com; rew 阅读全文
posted @ 2020-10-28 18:31 zhyemmmm 阅读(2142) 评论(0) 推荐(0) 编辑
摘要: 首先准备3台虚拟机,设置好固定IP,用xshell连上,因为xshell有一个发送键输入到所有会话功能比较方便,本次以CentOS7最小版做实践。 #集群关系 192.168.126.100 nginx(代理)、mycat 192.168.126.101 nginx、mysql(主)、php 192 阅读全文
posted @ 2020-07-30 18:39 zhyemmmm 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 一、虚拟机配置 1、在WMware里装上3台虚拟机,CentOS7最小化系统,配置好独立IP,截图如下: 2、修改虚拟机网卡配置,然后启动网卡,再查看ip已经固定 #vi /etc/sysconfig/network-scripts/ifcfg-ens33 BOOTPROTO=static ONBO 阅读全文
posted @ 2020-07-24 18:53 zhyemmmm 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 简单理解docker:docker 是一个开源的应用容器引擎,就像虚拟机,可以在它上面跑应用服务(container),而生成应用服务的就叫镜像(image)。 1、首先得安装docker,安装最新的看官方文档:https://docs.docker.com/engine/install/cento 阅读全文
posted @ 2020-05-15 12:46 zhyemmmm 阅读(2985) 评论(0) 推荐(0) 编辑
摘要: #进程与状态相关 systemctl start firewalld.service #启动防火墙 systemctl stop firewalld.service #停止防火墙 firewall-cmd --state #查看防火墙状态 firewall-cmd --reload #更新防火墙规则 阅读全文
posted @ 2020-04-29 10:46 zhyemmmm 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、PHP官方扩展库 http://pecl.php.net/ 2、下载redis对应版本扩展并解压并进入解压目录 tar zxf redis-5.1.1.tgz cd redis-5.1.1.tgz 3、执行phpize /usr/bin/phpize 4、配置编译参数,出现错误时需安装autoc 阅读全文
posted @ 2019-12-09 17:26 zhyemmmm 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1、安装 yum -y install httpd-tools 2、检测版本 ab -V 3、常用 ab -c 10 -n 100 127.0.0.1/index.php #同时处理100个请求并运行10次index.php #-c10表示并发用户数为10 #-n100表示请求总数为100 4、解释 阅读全文
posted @ 2019-11-25 14:41 zhyemmmm 阅读(230) 评论(0) 推荐(0) 编辑