CANN基础设施用户指南

发布时间:2026/11/23 22:36:03

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/11/9 19:41:05

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

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

2026/11/23 22:31:42

电工证有本的值不值得考?别被中介坑了

电工证有本的值不值得考?别被中介坑了 你是不是也听朋友说“电工证有本的”才能干电工?但又不知道从哪报名,怕被中介坑了?别急,我来给你说清楚。这证到底值不值得考,别光看广告,得看内容。 电工证有本的是什么?怎么考? ###…

2026/11/23 22:31:40

北流电工证怎么考更省事?考前押题帮你搞定工地太忙的难题

北流电工证怎么考更省事?考前押题帮你搞定工地太忙的难题 工地太忙根本没时间复习考试,想考北流电工证的人肯定都遇到过这种情况。尤其是现在特种作业越来越规范,电工证不仅要实操,还得过理论考试,光是准备资料就让人头大。不过别担心, 考前押题…

2026/11/23 22:31:34

顺义安监局复审电工证通过率揭秘:实操考试心里没底怕挂科怎么破

顺义安监局复审电工证通过率揭秘:实操考试心里没底怕挂科怎么破 实操考试心里没底怕挂科?顺义安监局复审电工证的学员普遍存在这种焦虑。你不是一个人在战斗,很多人复审前都经历过同样的心理压力。尤其是在电工这类高风险岗位,实操考试不仅关系到证书是否…

2026/11/23 22:31:24

特种工退休标准怎么算?考前押题帮你轻松过关

特种工退休标准怎么算?考前押题帮你轻松过关 怕考不过白交培训费?特种工考试难度大,很多人一想到要花钱、花时间,心里就打鼓。尤其是像漯河这样的工程类应届毕业生,刚毕业就想拿证上岗,但又担心考不过白忙一场。其实,只要掌握好 考前押题…

2026/11/23 22:26:24

南宁中级电工证多少钱?怕考不过白交培训费?这几点必须知道

南宁中级电工证多少钱?怕考不过白交培训费?这几点必须知道 怕考不过白交培训费?南宁中级电工证多少钱?很多人报名前都纠结这个问题,但往往一上来就被培训机构的“包过”“保就业”忽悠得团团转,最后花了钱还拿不到证,或者证拿到手后才发现根本不适合自…

2026/11/23 10:26:16

高压电工证还能年审吗良心建议来了,学历不高也能考!

高压电工证还能年审吗良心建议来了,学历不高也能考! 你是不是也担心,自己学历不高,根本报不上高压电工证?其实不然,现在政策已经非常明确, 高压电工证还能年审 ,而且只要符合条件, 学历不是门槛 , 良心建议…

2026/11/23 2:38:11

吴江的电工证免费培训怎么报名?官方报名入口全解析

吴江的电工证免费培训怎么报名?官方报名入口全解析 你急需特种作业证才能上岗找工作,但不知道从哪里下手?别急,现在就给你讲明白【吴江的电工证免费培训】到底怎么操作,以及怎么通过 官方报名入口…

2026/11/23 0:26:19

电工证复审肃州区的真实经历:别被中介坑了,自己搞定更靠谱

电工证复审肃州区的真实经历:别被中介坑了,自己搞定更靠谱 不知道去哪报名怕被中介坑?这几乎是每个需要办理或复审电工证的人的真实经历。尤其在肃州区,信息不透明、流程复杂、中介收费高又不靠谱,让很多电工从业者感到头疼。作为一个在应急管理和特种作…

2026/11/23 0:01:38

南宁哪里可以学电工证值不值得考?怕被中介坑?看这篇就够了

南宁哪里可以学电工证值不值得考?怕被中介坑?看这篇就够了 不知道去哪报名怕被中介坑?南宁哪里可以学电工证值不值得考?这是很多想考电工证的朋友最关心的问题。现实中,不少人在选择培训机构时被各种五花八门的广告信息搞得晕头转向,甚至被坑了钱还没拿…

2026/11/23 0:01:38

建设局特种工证怎么查全国通用的复审流程

建设局特种工证怎么查全国通用的复审流程 证书过期了不知道怎么复审延期,这是很多特种作业从业者常遇到的问题。尤其是在洛阳涧西区从事水利工程工作的你,特种作业操作证不仅是上岗的“通行证”,更是保障安全作业的法律底线。如果操作证过期了,不仅影响工…

2026/11/23 0:01:38

电工证跨考政策值不值得考?学历不高也能考的真相

电工证跨考政策值不值得考?学历不高也能考的真相 你是不是也觉得学历不够,报电工证怕被拒?别急,国家安全生产考试网明文规定, 电工证跨考政策 对学历门槛没有硬性限制,只要你年满18岁,身体健康,能通过实操考试,就能报考。关键是, 值不值得考…

2026/11/23 21:10:55

面向复杂光照与角度的宠物面部识别鲁棒性增强策略

在智慧养宠时代,基于视觉的宠物身份识别技术正逐步从实验室走向家庭应用。然而,与配合度高的人类不同,宠物是典型的“非合作生物识别对象”——它们不会主动配合摄像头调整姿态,更无法控制光照环境。实际应用中,我们常…

2026/11/22 5:39:03

SSM电子书店源码全解析:结构、原理、部署与排错实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

还想了解更多?直接咨询顾问

免费诊断 + 免费方案 + 透明报价。

全国咨询热线400-8866-253
免费获取方案
☎咨询二维码 ☎ ↑