NovelAi优化
Linux安装1234567安装python3.10conda create -n ai310 python=3.10source activate ai310pip install -r requirements.txt安装对应cuda版本的pytorchpip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
修改启动端口1python -m uvicorn --host 0.0.0.0 --port=6969 --workers 1 main:app
多显卡优化1export CUDA_VISIBLE_DEVICES=0,1
内存分配优化(alloc memory error)加上这个可以分配更大的图,2080Ti 11G可以输出 512*768的
1export PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:128
并发模型,可以多个任务次序执行而不会崩溃修改 main.py
123456789 ...
Ailab数据迁移手记1-目标服务初始化安装
Elasticsearch 服务器迁移 目标服务初始化安装
服务安装123456sudo yum install java-1.8.0-openjdk-develwget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.3.rpmwget https://artifacts.elastic.co/downloads/kibana/kibana-5.5.3-x86_64.rpmrpm --install elasticsearch-5.5.3.rpmrpm --install kibana-5.5.3-x86_64.rpm
修改配置修改绑定ip和端口
1vim /etc/elasticsearch/elasticsearch.yml
12network.host: 0.0.0.0http.port: 9200
修改Kibana配置
1vim /etc/kibana/kibana.yml
123server.host: "0.0.0.0"server.port: 560 ...