
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://images.microbadger.com/badges/version/nvaitc/ai-lab:0.8.svg](https://microbadger.com/images/nvaitc/ai-lab:0.8) https://img.shields.io/docker/pulls/nvaitc/ai-lab.svg](https://hub.docker.com/r/nvaitc/ai-lab) https://images.microbadger.com/badges/image/nvaitc/ai-lab:0.8-vnc.svg](https://microbadger.com/images/nvaitc/ai-lab:0.8-vnc) https://img.shields.io/github/issues/nvaitc/ai-lab.svg](Issues) !https://img.shields.io/github/last-commit/nvaitc/ai-lab.svg
All-in-one AI development container for rapid prototyping, compatible with the nvidia-docker GPU-accelerated container runtime as well as JupyterHub. This is designed as a lighter and more portable alternative to various cloud provider "Deep Learning Virtual Machines". Get up and running with a wide range of machine learning and deep learning tasks by pulling and running the container on your workstation, on the cloud or within JupyterHub.
This image can be used together with NVIDIA GPUs on workstation, servers, cloud instances. It can also be used via JupyterHub deployments as no additional ports are required things like for TensorBoard. Please note that the following instructions assume you already have the NVIDIA drivers and container runtime already installed. If not, here are some quick instructions.
Pulling the container
bashdocker pull nvaitc/ai-lab:0.8 # 0.6 is the last version supporting driver < 410
Running an interactive shell (bash)
bashnvidia-docker run --rm -it nvaitc/ai-lab:0.8 bash
Run Jupyter Notebook
The additional command line flags define the following options:
8888 to your host machine/home/$USER as the working directory (/home/jovyan)bashnvidia-docker run --rm \ -p 8888:8888 \ -v /home/$USER:/home/jovyan \ nvaitc/ai-lab:0.8
Run JupyterLab by setting JUPYTER_ENABLE_LAB=yes, or replacing tree with lab in the browser address bar
bashnvidia-docker run --rm \ -p 8888:8888 \ -v /home/$USER:/home/jovyan \ -e JUPYTER_ENABLE_LAB=yes \ nvaitc/ai-lab:0.8
For extended instructions, please take a look at: INSTRUCTIONS.md.
INSTRUCTIONS.md contains full instructions and addresses common questions on deploying to public cloud (GCP/AWS), as well as using PyTorch DataLoader or troubleshooting permission issues with some setups.
If you have any ideas or suggestions, please feel free to open an issue.
1. Can I modify/build this container myself?
Sure! The Dockerfile is provided in this repository. All you need is a fast internet connection and about 50 minutes of time to build this container from scratch.
Should you only require some extra packages, you can build your own Docker image using nvaitc/ai-lab as the base image. For example, to add the MXNet framework into container:
Dockerfile# create and build this Dockerfile FROM nvaitc/ai-lab:0.8 LABEL maintainer="You <you@yourdomain.com>" # you need to use root user for apt-get or make install #USER root #RUN apt-get update && apt-get install some-package # use notebook user for pip/conda USER $NB_UID RUN pip install --no-cache-dir mxnet-cu92mkl # always switch back to notebook user at the end USER $NB_UID
2. Do you support MXNet/some-package?
See Point 1 above to see how to add MXNet/some-package into the container. I had chosen not to distribute MXNet/some-package with the container as it is less widely used and is large in size, and can be easily installed with pip since the environment is already properly configured. If you have a suggestion for a package that you would like to see added, open an issue.
3. Do you support multi-node or multi-GPU tasks?
Multi-GPU has been tested with Keras multi_gpu_model and Horovod, and it works as expected. However, I have not yet validated multi-node tasks (eg. OpenMPI and Horovod) but the packages are installed. I intend to pay more attention to this in the future.
4. How does this contrast with NGC containers?
NVIDIA GPU Cloud (https://www.nvidia.com/en-sg/gpu-cloud/) features NVIDIA tuned, tested, certified, and maintained containers for deep learning and HPC frameworks that take full advantage of NVIDIA GPUs on supported systems, such as https://www.nvidia.com/en-sg/data-center/dgx-systems/. We recommend the use of NGC containers for mission critical and production workloads.
The AI Lab container was designed for students and researchers. The container is primarily designed to create a frictionless experience (by including all frameworks) during the initial prototyping and exp***tion phase, with a focus on iteration with fast feedback and less focus on deciding on specific approaches or frameworks. This is not an official NVIDIA product!
If you would like to use NGC containers in an AI Lab like container, there is an example of how you can build one yourself. Take a look at tf-amp.Dockerfile. Do note that you are restricted from distributing derivative images from NGC containers in a public Docker registry.
Adapted from the Jupyter Docker Stacks
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务