Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Llama 3.1 8B Training Example for Bacalhau
This repository contains a single-node training example using NVIDIA's Llama 3.1 8B model, adapted for running on Bacalhau. This is a simplified version that demonstrates basic LLM training capabilities using 8 GPUs on a single node.
Based on https://catalog.ngc.nvidia.com/orgs/nvidia/teams/dgxc-benchmarking/resources/llama31-8b-dgxc-benchmarking-a
Overview
Structure
Building and Pushing the Image
docker buildx create --use docker buildx build --platform linux/amd64,linux/arm64 \ -t ghcr.io/bacalhau-project/llama3-benchmark:24.12 \ -t ghcr.io/bacalhau-project/llama3-benchmark:latest \ --push .
Running on Bacalhau
Basic training job (10 steps with synthetic data):
bacalhau job run sample-job.yaml -V "steps=10"
Environment variables for customization:
DTYPE
: Data type (fp8, bf16)MAX_STEPS
: Number of training stepsUSE_SYNTHETIC_DATA
: Whether to use synthetic data (default: true)Output
Training results and logs are saved to the
/results
directory which gets:The results include:
Resources Required
Fixed requirements:
Notes