发布时间:2026/8/25 18:22:26
CANN基础设施用户指南 3.1 Environment Lifecycle Management【免费下载链接】infrastructure本仓库用于托管CANN社区基础设施团队的公开信息包括不限于会议日程成员信息服务文档和配置等信息项目地址: https://gitcode.com/cann/infrastructureCANNLab instances have the following states:StateDescriptionConsumes Card-HoursRunningInstance is running, development operations availableYesStoppedInstance is stopped,/mnt/workspaceand/homedata retainedNoSleepingAuto-suspended after prolonged inactivity, data retainedNoDeletedInstance is destroyed, data unrecoverable-Operations:Stop: Stop the instance and release computing resources. Data under/mnt/workspaceand/homeis persisted; data in other directories is lost.Start: Restart a stopped or sleeping instance.Delete: Permanently destroy the instance.All data is unrecoverable after deletion.Please back up or push code to a Git repository in advance.NoteNPU resource types (A2/A3) do not support direct switching. You need to stop, delete, and then recreate the instance.3.2 Computing Resource Management3.2.1 Resource SpecificationsResource TypeChip ModelSpecification OptionsDurationDescriptionNPU (A2)Ascend A21-card: 16vCPUs/32GiB100 card-hoursGeneral NPU computing1-card: 32vCPUs/32GiB8-card: 192vCPUs/1536GiBNPU (A3)Ascend A31-card: 40vCPUs/240GiB100 card-hoursHigh-end NPU computing8-card: 320vCPUs/1920GiBCPU (ARM)Kunpeng16vCPUs/32GiB720 core-hoursARM only, x86 not supported3.2.2 Usage RulesDevelopers:Total of 100 card-hours. When card-hours are exhausted, the instance willautomatically shut downand release resources.Computing consumption is measured in card-hours. For example, a 2-card instance can be used for a maximum of 50 hours.It is recommended to stop or delete instances when not in use to avoid unnecessary quota consumption.3.2.3 Resource Application LimitsYou can apply forone NPU resource and one CPU resource.Switching NPU resource types (e.g., A2 → A3) requires stopping, deleting, and recreating the instance.Note: When an instance is deleted,/mnt/workspaceand/homedata are not retained.3.3 CANN Software Stack Management3.3.1 Check CANN VersionThe CANN package is pre-installed at/home/developer/Ascend(note: this differs from the default installation path/usr/local/Ascend).Method 1: Check environment variablesenv | grep ASCENDMethod 2: View version filecat /home/developer/Ascend/ascend-toolkit/latest/opp/version.info3.3.2 Check Driver VersionThe current driver version is25.5.1, installed at/usr/local/Ascend/driver.cat /usr/local/Ascend/driver/version.info | grep Version3.3.3 Upgrade CANN VersionMethod 1: One-click upgrade from console (Recommended)In the CANNLab instance list, click theCANN Package Upgradebutton.Select the upgradable CANN package version (e.g., 9.0.0 official release, master branch build).Verify the upgrade result:cd /home/developer/.cann ./manage_cann_pkg.sh --versionA result oftask.status 1andprocess 100%indicates a successful upgrade.Method 2: Manual installationAfter connecting via WebIDE or VSCode, manually download and install in the terminal.3.3.4 Driver Version UpgradePersonal instance driver version upgrades are not currently supported; upgrades are managed uniformly by the platform. If you have driver version dependencies, please submit an Issue in the Dev-experience repository.3.4 Data Management3.4.1 Persistent StorageDirectoryPersistentDescription/mnt/workspace✅ YesData retained after instance shutdown, cleared upon instancedeletion/home✅ YesData retained after instance shutdown, cleared upon instancedeletionOther system directories❌ NoData lost after instance deletionImportant NotesStore important files such as code projects, datasets, and model files under/mnt/workspaceor/home.Instance deletion is irreversible. Please back up important data in advance.3.4.2 File Upload and DownloadFile upload/download is supported directly via the WebIDE interface or VSCode plugin.3.4.3 Automatic Code PullWhen creating an environment, you canadd a preloaded code repository. During environment instantiation, the repository will beautomatically clonedto/mnt/workspace, with no manual pull required. If no preloaded code repository is added when creating the environment, no repository will be cloned during instantiation.3.5 Code Project Management3.5.1 Switch Project DirectoryIn WebIDE: File - Open Project - Select the corresponding repository directory.3.5.2 Branch ManagementThe automatically cloned code is from themasterbranch. For other branches, please switch manually. Branch specification functionality is currently under development.3.5.3 Git Password-Free OperationsThe platform automatically configures SSH public/private keys based on GitCode account binding, makinggit clone/git pushpassword-free.3.6 Built-in Development Tools3.6.1 Huawei OP DevTools (Operator Development Plugin)Pre-installed in the cloud development environment, providing:FeatureDescriptionProject CreationOne-click creation of pyasc operators and standard custom operatorsCompilation ExecutionVisual compilation and execution, supports chip type configuration (A3/A5)DebuggingSupports DumpTensor debugging, data persistence, and visualizationAnomaly DetectionDetects code anomalies, supports error location and navigationPerformance TuningPerformance swimlane analysis and result chartingAccuracy ComparisonDumpTensor data visualization for accuracy comparisonUT TestingUnit testing for standard custom operatorsUpgrade MethodAfter connecting to the environment, search for Huawei OP DevTools in the left sidebar Extensions. If an Update icon appears on the Huawei OP DevTools plugin, a new version has been released. Update the version on the plugin details page. To simplify future operations, it is recommended to enable Auto Update on the plugin details page so later plugin versions are upgraded silently.3.6.2 PyPTO ToolkitPre-installed in the cloud development environment, a high-performance programming framework for AI accelerators that simplifies the development of complex fused operators and model networks.FeatureDescriptionTile Programming ModelHardware-aware data block (Tile) programming paradigm, fully leveraging NPU parallel capabilitiesMulti-level IR CompilationTensor Graph → Tile Graph → Block Graph → Execution Graph automatic compilation optimizationAutomatic Code GenerationCompiles to generate PTO virtual instructions, then compiles to target platform executable codeLayered AbstractionTensor layer for algorithm developers, Tile layer for performance experts, Block layer for system developersAccuracy VerificationGolden reference generation, accuracy comparison and localization, binary comparisonPerformance TuningMeasured performance data analysis, bottleneck localization, iterative optimizationUse CasesComplex fused operator development (e.g., FlashAttention, MLA)Large model operator-level implementation and optimizationOperator development requiring extreme performance tuningUpgrade MethodAfter connecting to the environment, search for PyPTO Toolkit in the left sidebar Extensions. If an Update icon appears on the PyPTO Toolkit plugin, a new version has been released. Update the version on the plugin details page. To simplify future operations, it is recommended to enable Auto Update on the plugin details page so later plugin versions are upgraded silently.3.6.3 OpenCodeThe OpenCode tool is built into the terminal, supporting natural language interactive coding assistance.Configuration MethodVerify that opencode is built into the environment:opencode --versionOpen the configuration file:/home/developer/.config/opencode/opencode.jsonAdd provider configuration to the file (using GLM-4-7 as an example):provider: { myprovider: { npm: ai-sdk/openai-compatible, name: volcengine, options: { baseURL: https://ark.cn-beijing.volces.com/api/v3, apiKey: *** }, models: { END_POINT_ID: { name: GLM-4-7-END_POINT_ID } } } }Runopencodein the terminal and enter/modelsto select a model and start using.Upgrade MethodAfter connecting to the environment, search for CANNBot Toolkit in the left sidebar Extensions. If an Update icon appears on the CANNBot Toolkit plugin, a new version has been released. Update the version on the plugin details page. To simplify future operations, it is recommended to enable Auto Update on the plugin details page so later plugin versions are upgraded silently.3.7 Image Management3.7.1 View Current Image VersionMethod 1:On the CANNLab instance list page, hover over Image/Specification to view details.Method 2:Run the following command in the environmentcat /home/developer/image-version.txt3.7.2 Image Version UpdateScenarioOperation MethodNeed a fresh environmentStop - Delete instance - Recreate (back up data first)Upgrade CANN package onlyUse the CANN Package Upgrade buttonUpgrade operator plugin onlySearch for the plugin name in Extensions and updateUpgrade OpenCode onlySearch for CANNBot Toolkit in Extensions and updateNote:Direct image upgrade is not currently supported.【免费下载链接】infrastructure本仓库用于托管CANN社区基础设施团队的公开信息包括不限于会议日程成员信息服务文档和配置等信息项目地址: https://gitcode.com/cann/infrastructure创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

相关新闻

2026/8/23 12:57:17

从0到1上手Jacobian Lens:3分钟学会加载预训练模型透镜文件

从0到1上手Jacobian Lens:3分钟学会加载预训练模型透镜文件 【免费下载链接】jacobian-lens 项目地址: https://ai.gitcode.com/hf_mirrors/neuronpedia/jacobian-lens Jacobian Lens是一款强大的模型分析工具,能够帮助开发者深入理解预训练语言…

2026/8/26 11:07:10

Playwright爬虫实战:从原理到应用,高效应对动态网页与反爬

1. 项目概述:为什么是Playwright?如果你正在为动态网页、SPA应用或者那些反爬机制层出不穷的网站头疼,还在用传统的requestsBeautifulSoup或者Selenium硬扛,那今天这个内容就是为你准备的。我最近在几个数据采集项目中&#xff0c…

2026/8/26 11:07:10

Playwright自动化测试与数据抓取:从原理到实战的完整指南

1. 项目概述:为什么是Playwright?如果你正在为动态网页的数据抓取头疼,或者厌倦了Selenium那套需要额外驱动、时不时就版本不兼容的繁琐流程,那么Playwright绝对是你下一个应该投入时间学习的工具。我最初接触它,是因为…

2026/8/26 11:07:10

云手机+GPU驱动数字人直播:技术架构、实战部署与避坑指南

1. 从“真人出镜”到“数字分身”:直播业态的算力革命 最近两年,如果你经常刷短视频或者看直播,可能会发现一个有趣的现象:一些直播间的主播,形象精致、口播流畅,但总感觉哪里有点“不对劲”。仔细一看&…

2026/8/26 11:07:10

华为OD机试:双机位Java与Go实现选举算法

1. 题目背景与需求解析 "明日之星选举"是华为OD机试中的一道典型算法题目,主要考察候选人对数据结构与算法的掌握程度。题目要求使用双机位模式(即两台独立设备协同工作)在C卷环境下,分别用Java和Go两种语言实现选举系统…

2026/8/26 11:07:09

基于LSTM的股票预测模型:从数据预处理到答辩全流程解析

简介:时间序列预测是深度学习在金融领域的经典应用场景,而LSTM作为一种擅长捕捉长期依赖的循环神经网络,凭借门控机制有效缓解了传统RNN的梯度消失问题,成为股票价格预测中兼顾理论深度与工程实现的高性价比方案。本文从回归问题的…

2026/8/26 11:02:09

船舶目标检测实战:基于YOLO的10类船舶数据集训练与优化

简介:目标检测是计算机视觉领域的核心任务之一,其目标是在图像中定位并分类多个物体。YOLO系列模型凭借端到端的单阶段检测架构,在实时性与精度之间取得了良好平衡,成为工业界应用最广泛的检测算法之一。而高质量的数据集则是模型…

2026/8/26 9:13:28

[光学原理与应用-521]:对光的错误理解与纠偏

首先光是一种能量的载体和形态,宏观上观察到的光是由无数个微观的光量子组成的,每个光子在产生的瞬间,其在真空的空间中以确定不变的速度沿着一个初始的方向一直向前,在微观层面,每个光量子的运动轨迹是以波函数所展现…

2026/8/25 11:48:27

SIP通话转接原理与REFER方法实战解析

1. 通话转接不是“挂断再拨号”,而是SIP会话的动态重定向你有没有遇到过这样的场景:客服坐席A正在和客户通电话,突然需要把这通对话无缝转给专家坐席B,客户完全感知不到中间的断连——既没听到忙音,也没被要求重新拨号…

2026/8/25 16:56:43

Kolla-ansible单节点OpenStack部署实战:从环境准备到排坑指南

1. 为什么选择Kolla-ansible来部署单节点OpenStack?如果你正在寻找一种能把OpenStack从“概念”快速变成“可用的实验环境”的方法,那么Kolla-ansible几乎是当前最主流、最省心的选择。我见过太多人卡在手动编译依赖、配置服务、处理版本冲突的泥潭里&am…

2026/8/26 0:04:32

Python random 模块常用函数详解:从入门到实战

目录 1. 引言2. 准备工作3. 基础随机函数4. 序列相关函数5. 随机种子与复现6. 实战案例7. 注意事项8. 常见问题与排查9. 总结 1. 引言 摘要: 本文系统介绍 Python 标准库 random 模块中最常用的随机数生成函数。内容涵盖基础随机函数(random()、unifor…

2026/8/26 1:19:35

JSON总结

JSON概念 JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式,主要用于跟服务器进行交换数据。它基于ECMAScript的一个子集。 JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C、C、C#、Java、JavaScr…

2026/8/26 1:19:35

保存连接sse 是什么原理,为什么不会一直请求

“保持连接”用的是 SSE(Server-Sent Events),本质是一个没有马上结束的 HTTP 请求。 过程是: 拷贝机发送一次请求: GET /api/code-sync/events服务器返回: Content-Type: text/event-stream但不关闭响应&…

2026/8/24 13:42:17

实测才敢推 AI论文网站 2026最新测评与推荐

2026年真正好用的AI论文网站,核心看生成的论文质量、低AI味、格式正确、学术适配四大指标。综合实测,千笔AI、ThouPen、豆包、DeepSeek、Grammarly 是当前最值得推荐的梯队,覆盖从免费到付费、从中文到英文、从文科到理工的全场景需求。一、综…

2026/8/24 18:13:48

2026必备!AI论文网站测评:最新推荐与深度对比

2026年真正好用的AI论文网站,核心看生成的论文质量、低AI味、格式正确、学术适配四大指标。综合实测,千笔AI、ThouPen、豆包、DeepSeek、Grammarly 是当前最值得推荐的梯队,覆盖从免费到付费、从中文到英文、从文科到理工的全场景需求。 一、…

2026/8/25 1:08:14

摆脱论文困扰!盘点2026年全网爆红的的AI论文写作工具

一天写完毕业论文在2026年已不再是天方夜谭。2026年最炸裂、实测能大幅提速的AI论文写作工具,覆盖选题构思、文献整理、内容生成、格式排版等核心场景,真正帮你高效搞定论文难题。 一、全流程王者:一站式搞定论文全链路(一天定稿首…