上一页 1 2 3 4 5 6 ··· 29 下一页
摘要: 用jmeter 压力测试GPU版本的模型服务时,发现增加jmeter线程数(20个线程时),在压测的后半段会报错,进去查看结果树发现这样的错误: Response code:Non HTTP response code: java.net.NoRouteToHostException Respons 阅读全文
posted @ 2023-03-28 19:40 morein2008 阅读(461) 评论(0) 推荐(0)
摘要: 参考链接:Using nginx as HTTP load balancer 1)如果只是想用一个端口转发请求然后调用多个站点(也可以是同一个服务,例如sanic包装的模型服务接口,部署在多个不同端口,下例中是8771~8773开启了3个sanic接口服务,然后调用方通过myapp2的8777访问这 阅读全文
posted @ 2023-03-08 19:38 morein2008 阅读(171) 评论(0) 推荐(0)
摘要: 泰国地址的书写格式跟西方国家类似,先写小地址,后写大地址,可分成7级的书写格式一般为: 1、地块 / 楼栋 编号 --泰国人少,不像中国到处是高楼大厦,没有小区的概念,一般独栋小楼比较多,一个地块上可能有多个楼栋。2、村 [名称] 编号 --村(Village,泰国称之为Moo、Murban),一般 阅读全文
posted @ 2023-02-01 16:58 morein2008 阅读(6536) 评论(0) 推荐(1)
摘要: top命令下 按键shift+M,对各进程按内存使用率排序按键shift+P,对各进程按CPU使用率排序按键C 显示各进程的完整命令 查找进程对应的可执行文件的路径:ls -l /proc/进程号/exe 参考: https://www.cnblogs.com/jiqing9006/p/927050 阅读全文
posted @ 2022-12-08 12:05 morein2008 阅读(167) 评论(0) 推荐(0)
摘要: https://download.pytorch.org/whl/torch_stable.html 阅读全文
posted @ 2022-10-19 17:12 morein2008 阅读(32) 评论(0) 推荐(0)
摘要: torch进行GPU卡训练时,报错RuntimeError: Address already in use参考:https://www.it610.com/article/1279180977062559744.htm问题在于,TCP的端口被占用,一种解决方法是,运行程序的同时指定端口,端口号随意给 阅读全文
posted @ 2022-10-14 12:03 morein2008 阅读(1817) 评论(0) 推荐(0)
摘要: Python解析Xml from lxml import etree def get_info_from_xml(xml_text): try: parser = etree.XMLParser(recover=True) tree = etree.fromstring(bytes(xml_text 阅读全文
posted @ 2022-10-13 15:31 morein2008 阅读(42) 评论(0) 推荐(0)
摘要: 用命令即可: python3 -m torch.distributed.launch --master_port 10001 --nproc_per_node 8 train.py 其中设置master_port是为了避免端口已被其他进程占用而报错,若报错可设置一个新端口号为master_port 阅读全文
posted @ 2022-09-01 18:08 morein2008 阅读(253) 评论(0) 推荐(0)
摘要: transformers API参考链接:https://huggingface.co/docs/transformers/v4.21.2/en/training train.py from datasets import load_dataset from transformers import 阅读全文
posted @ 2022-09-01 18:02 morein2008 阅读(586) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/peghoty/p/3857839.html 阅读全文
posted @ 2022-08-23 19:18 morein2008 阅读(18) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 29 下一页