用于在NVIDIA Jetson边缘设备上部署和运行大语言模型的Docker镜像,针对嵌入式硬件优化,支持本地高效推理。
nano_llm
CONTAINERSIMAGESRUNBUILD
[!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 | |
|---|---|
| Aliases | nano_llm |
| Requires | L4T ['>=35'] |
| Dependencies | https://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 |
| Dockerfile | https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/nano_llm/Dockerfile |
nano_llm:24.4 | |
|---|---|
| Requires | L4T ['>=35'] |
| Dependencies | https://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 |
| Dockerfile | https://github.com/dusty-nv/jetson-containers/tree/master/packages/llm/nano_llm/Dockerfile |
| Images | https://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/Tag | Date | Arch | Size |
|---|---|---|---|
| https://hub.docker.com/r/dustynv/nano_llm/tags | 2024-04-15 | arm64 | 8.5GB |
| https://hub.docker.com/r/dustynv/nano_llm/tags | 2024-04-15 | arm64 | 9.7GB |
| https://hub.docker.com/r/dustynv/nano_llm/tags | 2024-04-15 | arm64 | 8.5GB |
| https://hub.docker.com/r/dustynv/nano_llm/tags | 2024-04-15 | arm64 | 9.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/datacache, 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:
bashjetson-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:
bashjetson-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:
bashjetson-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.
dustynv 命名空间的其他可用镜像:
dustynv/vllm
dustynv/ollama
dustynv/ros
dustynv/jetson-inference
dustynv/l4t-pytorch
dustynv/transformers
dustynv/nano_llm Related Documentation
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务
