nano_llm

Nano Llm Docker Image

用于在NVIDIA Jetson边缘设备上部署和运行大语言模型的Docker镜像,针对嵌入式硬件优化,支持本地高效推理。

下载次数: 0状态:社区镜像维护者:dustynv仓库类型:镜像最近更新:
下载命令
点击查看

nano_llm

CONTAINERS IMAGES RUN BUILD

[!NOTE]
https://dusty-nv.github.io/NanoLLM is a lightweight, optimized library for LLM inference and multimodal agents. For more info, see these resources:

  • Repo - https://github.com/dusty-nv/NanoLLM
  • Docs - https://dusty-nv.github.io/NanoLLM
  • Jetson AI Lab - https://www.jetson-ai-lab.com/tutorial_live-llava.html, https://www.jetson-ai-lab.com/tutorial_nano-vlm.html, https://www.jetson-ai-lab.com/tutorial_slm.html
CONTAINERS
nano_llm:main
   Aliasesnano_llm
   RequiresL4T ['>=35']
   Dependencieshttps://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda-python https://github.com/dusty-nv/jetson-containers/tree/master/packages/vectordb/faiss https://github.com/dusty-nv/jetson-containers/tree/master/packages/vectordb/faiss_lite https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/huggingface_hub https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/rust https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/transformers https://github.com/dusty-nv/jetson-containers/tree/master/packages/tensorrt https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torch2trt https://github.com/dusty-nv/jetson-containers/tree/master/packages/vectordb/nanodb https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/mlc https://github.com/dusty-nv/jetson-containers/tree/master/packages/audio/riva-client https://github.com/dusty-nv/jetson-containers/tree/master/packages/opencv https://github.com/dusty-nv/jetson-containers/tree/master/packages/gstreamer https://github.com/dusty-nv/jetson-containers/tree/master/packages/jetson-inference https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchaudio https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnxruntime
   Dockerfilehttps://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/nano_llm/Dockerfile
nano_llm:24.4
   RequiresL4T ['>=35']
   Dependencieshttps://github.com/dusty-nv/jetson-containers/tree/master/packages/build/build-essential https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cudnn https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/python https://github.com/dusty-nv/jetson-containers/tree/master/packages/numpy https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/cmake/cmake_pip https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnx https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch https://github.com/dusty-nv/jetson-containers/tree/master/packages/cuda/cuda-python https://github.com/dusty-nv/jetson-containers/tree/master/packages/vectordb/faiss https://github.com/dusty-nv/jetson-containers/tree/master/packages/vectordb/faiss_lite https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchvision https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/huggingface_hub https://github.com/dusty-nv/jetson-containers/tree/master/packages/build/rust https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/transformers https://github.com/dusty-nv/jetson-containers/tree/master/packages/tensorrt https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torch2trt https://github.com/dusty-nv/jetson-containers/tree/master/packages/vectordb/nanodb https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/mlc https://github.com/dusty-nv/jetson-containers/tree/master/packages/audio/riva-client https://github.com/dusty-nv/jetson-containers/tree/master/packages/opencv https://github.com/dusty-nv/jetson-containers/tree/master/packages/gstreamer https://github.com/dusty-nv/jetson-containers/tree/master/packages/jetson-inference https://github.com/dusty-nv/jetson-containers/tree/master/packages/pytorch/torchaudio https://github.com/dusty-nv/jetson-containers/tree/master/packages/onnxruntime
   Dockerfilehttps://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/nano_llm/Dockerfile
   Imageshttps://hub.docker.com/r/dustynv/nano_llm/tags (2024-04-15, 8.5GB)
https://hub.docker.com/r/dustynv/nano_llm/tags (2024-04-15, 9.7GB)
CONTAINER IMAGES
Repository/TagDateArchSize
  https://hub.docker.com/r/dustynv/nano_llm/tags2024-04-15arm648.5GB
  https://hub.docker.com/r/dustynv/nano_llm/tags2024-04-15arm649.7GB
  https://hub.docker.com/r/dustynv/nano_llm/tags2024-04-15arm648.5GB
  https://hub.docker.com/r/dustynv/nano_llm/tags2024-04-15arm649.7GB

Container images are compatible with other minor versions of JetPack/L4T:
    • L4T R32.7 containers can run on other versions of L4T R32.7 (JetPack 4.6+)
    • L4T R35.x containers can run on other versions of L4T R35.x (JetPack 5.1+)

RUN CONTAINER

To start the container, you can use https://github.com/dusty-nv/jetson-containers/tree/master/docs/run.md and https://github.com/dusty-nv/jetson-containers/tree/master/docs/run.md#autotag, or manually put together a https://docs.docker.com/engine/reference/commandline/run/ command:

bash
# automatically pull or build a compatible container image
jetson-containers run $(autotag nano_llm)

# or explicitly specify one of the container images above
jetson-containers run dustynv/nano_llm:24.4-r36.2.0

# or if using 'docker run' (specify image and mounts/ect)
sudo docker run --runtime nvidia -it --rm --network=host dustynv/nano_llm:24.4-r36.2.0

https://github.com/dusty-nv/jetson-containers/tree/master/docs/run.md forwards arguments to https://docs.docker.com/engine/reference/commandline/run/ with some defaults added (like --runtime nvidia, mounts a /data cache, and detects devices)
https://github.com/dusty-nv/jetson-containers/tree/master/docs/run.md#autotag finds a container image that's compatible with your version of JetPack/L4T - either locally, pulled from a registry, or by building it.

To mount your own directories into the container, use the https://docs.docker.com/engine/reference/commandline/run/#volume or https://docs.docker.com/engine/reference/commandline/run/#volume flags:

bash
jetson-containers run -v /path/on/host:/path/in/container $(autotag nano_llm)

To launch the container running a command, as opposed to an interactive shell:

bash
jetson-containers run $(autotag nano_llm) my_app --abc xyz

You can pass any options to it that you would to https://docs.docker.com/engine/reference/commandline/run/, and it'll print out the full command that it constructs before executing it.

BUILD CONTAINER

If you use https://github.com/dusty-nv/jetson-containers/tree/master/docs/run.md#autotag as shown above, it'll ask to build the container for you if needed. To manually build it, first do the https://github.com/dusty-nv/jetson-containers/tree/master/docs/setup.md, then run:

bash
jetson-containers build nano_llm

The dependencies from above will be built into the container, and it'll be tested during. Run it with https://github.com/dusty-nv/jetson-containers/tree/master/jetson_containers/build.py for build options.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 nano_llm 镜像标签

docker pull docker.xuanyuan.run/dustynv/nano_llm:<标签>

DockerHub 原生拉取命令

docker pull dustynv/nano_llm:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告