
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
PYPI package for 启智AI协作平台。
适配python3.6及以上版本
PYPI package for 启智 AI 协作平台。
适配 python3.6 及以上版本
pip3 install -U openi_test
pip install openi-test==0.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
dataset.upload_file(file, username, repository, token, cluster = "NPU")
file
str, 必填:文件路径(包含文件名,支持linux与mac路径,也支持windows文件路径如d:\xxx)username
str, 必填:上传数据集所属项目owner用户名,可以是用户或组织repository
str, 必填:数据集所属项目路径,此为仓库地址中的名字,更改过名称的项目需填写仓库地址中的路径token
str, 必填:用户启智上获取的令牌token,并对该数据集有权限cluster
str, 选填, 默认"NPU":可填入GPU或NPU,上传至不同的存储集群
from openi.dataset import upload_file
upload_file(
file = "", # 必填,文件路径(包含文件名)
username = "", # 必填,数据集所属项目用户名
repository = "", # 必填,数据集所属项目名
token = "", #必填,用户启智上获取的令牌token,并对该项目数据集有权限
cluster = "", # 选填,可填入GPU或NPU,不填写后台默认为NPU
app_url = "" #选填, 默认为平台地址,用户不用填写,开发测试用
file = "",
username = "",
repository = "",
token = "",
cluster = ""
)
界面
from openi.dataset import download_file
download_file(
file="my_data.zip",
repo_id="user1/repo1",
cluster="gpu",
save_path="local_path/",
)
""" output
Complete( my_data.zip)(gpu): 100%|██████████████████████████████████████████| 22.0MB/22.0MB [00:01<00:00, 15.9MB/s]
"""
>>> openi
usage: openi {login, whoami, dataset, ...} [<args>] [-h]
OpenI command line tool 启智AI协作平台命令行工具
commands:
{login,logout,whoami,dataset,d,model,m}
login 使用令牌登录启智并保存到本机
logout 登出当前用户并删除本地令牌文件
whoami 查询当前登录用户
dataset (d) {upload,download} 上传/下载启智AI协作平台的数据集
model (m) {upload,download} 上传/下载启智AI协作平台的模型
>>> openi login
██████╗ ██████╗ ███████╗ ███╗ ██╗ ██████╗
██╔═══██╗ ██╔══██╗ ██╔════╝ ████╗ ██║ ██╔═╝
██║ ██║ ██████╔╝ █████╗ ██╔██╗ ██║ ██║
██║ ██║ ██╔═══╝ ██╔══╝ ██║╚██╗██║ ██║
╚██████╔╝ ██║ ███████╗ ██║ ╚████║ ██████╗
╚═════╝ ╚═╝ ╚══════╝ ╚═╝ ╚═══╝ ╚═════╝
点击链接获取令牌并复制粘贴到下列输入栏 https://openi.pcl.ac.cn/user/settings/applications
[WARNING] 若本机已存在登录令牌,本次输入的令牌会将其覆盖
粘贴前请先按 退格键⇦ 删除多余空格
🔒 token:
#导入包
from openi.context import prepare, upload_openi
#初始化导入数据集和预训练模型到容器内
openi_context = prepare()
#获取数据集路径,预训练模型路径,输出路径
dataset_path = openi_context.dataset_path
pretrain_model_path = openi_context.pretrain_model_path
you_must_save_here = openi_context.output_path
#回传结果到openi
upload_openi()
FAQs
A test package for openi pypi
We found that openi-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.