Skip to content

Commit

Permalink
Allow to use a different instructlab git repository via env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Javi Polo <[email protected]>
  • Loading branch information
javipolo committed May 3, 2024
1 parent ed3b643 commit a1ec1ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions training/instructlab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ REGISTRY ?= quay.io
REGISTRY_ORG ?= ai-lab
IMAGE_TAG ?= latest

INSTRUCTLAB_GIT_REPO ?= https://github.com/instructlab/instructlab.git
INSTRUCTLAB_GIT_BRANCH ?= main

.PHONY: instructlab
instructlab:
@mkdir -p ../build
git clone https://github.com/instructlab/instructlab.git 2> /dev/null || true
(cd instructlab; git pull origin main)
git clone $(INSTRUCTLAB_GIT_REPO) instructlab 2> /dev/null || true
(cd instructlab; git pull origin $(INSTRUCTLAB_GIT_BRANCH))

.PHONY: nvidia
nvidia: instructlab
Expand Down

0 comments on commit a1ec1ce

Please sign in to comment.