上一页 1 2 3 4 5 6 7 8 ··· 32 下一页
摘要: # Python 命令行工具库:Fire > Python Fire 是 Google 开源的一个可从任何 Python 代码自动生成命令行接口(CLI)的库。 Python Fire 是一种在 Python 中创建 CLI 的简单方法。 Python Fire 是开发和调试 Python 代码的有 阅读全文
posted @ 2023-09-05 09:21 michaelchengjl 阅读(83) 评论(0) 推荐(0) 编辑
摘要: # Ziya-LLaMA-13B 模型在GPU 上部署 Ziya-LLaMA-13B是IDEA-CCNL基于LLaMa的130亿参数的大规模预训练模型,具备翻译,编程,文本分类,信息抽取,摘要,文案生成,常识问答和数学计算等能力。目前姜子牙通用大模型已完成大规模预训练、多任务有监督微调和人类反馈学习 阅读全文
posted @ 2023-09-04 11:37 michaelchengjl 阅读(835) 评论(1) 推荐(0) 编辑
摘要: # GIt设置代理 GIt需要设置代理,才能正常访问github 等网站 设置如下(可复制): ``` git config --global https.proxy http://127.0.0.1:1080 git config --global https.proxy https://127. 阅读全文
posted @ 2023-08-15 16:02 michaelchengjl 阅读(366) 评论(0) 推荐(0) 编辑
摘要: onnx_runtime 推理 import numpy as np import onnx import onnxruntime as rt #create input data input_data = np.ones((1, 3, 299, 299), dtype=np.float32) #c 阅读全文
posted @ 2023-08-11 18:10 michaelchengjl 阅读(80) 评论(0) 推荐(0) 编辑
摘要: # transformer/tensorflow报错:ValueError: tensorflow.__spec__ is None , free(): invalid pointer 由于tensorflow版本(tf1)和transformer版本不匹配产生。 解决办法: ``` 1.升级ten 阅读全文
posted @ 2023-08-02 09:57 michaelchengjl 阅读(280) 评论(0) 推荐(0) 编辑
摘要: # Streamlit 入门介绍 Streamlit 是一个 Python Web 应用框架。但和常规 Web 框架,如 Flask/Django 的不同之处在于,它不需要你去编写任何客户端代码(HTML/CSS/JS),只需要编写普通的 Python 模块,就可以在很短的时间内创建美观并具备高度交 阅读全文
posted @ 2023-07-11 11:00 michaelchengjl 阅读(324) 评论(0) 推荐(0) 编辑
摘要: # Faiss 简介 ## 1.Faiss是什么 Faiss是Facebook Ai Research开发的一款稠密向量检索工具。引用Faiss Wiki上面的一段简介 > Faiss is a library for efficient similarity search and clusteri 阅读全文
posted @ 2023-06-30 16:37 michaelchengjl 阅读(565) 评论(0) 推荐(0) 编辑
摘要: # Python pygments库 简单介绍 pygments是一个将代码格式化的Python库,可以将代码格式化为html代码、图片、rtf文件等多种格式。 [官网:pygments.org](https://pygments.org/) [PyPI:pygments](https://pypi 阅读全文
posted @ 2023-06-30 16:21 michaelchengjl 阅读(125) 评论(0) 推荐(0) 编辑
摘要: # python 字符串前加f、r、b、u ### 一、字符串前加"f" 1. **%** 可以使用 % 格式化字符串。 ``` c = (250, 250) # 使用 % 格式化 s1 = "坐标为:%s" % c # TypeError: not all arguments converted 阅读全文
posted @ 2023-06-29 18:49 michaelchengjl 阅读(170) 评论(0) 推荐(0) 编辑
摘要: # python 中 fnmatch模块, textwrap 模块 **fnmatch模块** 查找文件 使用fnmatch来查找特定的文件,大部分情况下,使用字符串匹配查找特定的文件就能满足需求,如果需要更加灵活的字符串匹配,可以使用标准库中的fnmatch库,这个库专门用来进行文件名匹配,支持使 阅读全文
posted @ 2023-06-29 18:37 michaelchengjl 阅读(204) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 32 下一页