Skip to content

Commit

Permalink
Merge pull request #33 from replicate/hf-push-in-test
Browse files Browse the repository at this point in the history
Add HF upload to train test
  • Loading branch information
fofr authored Sep 16, 2024
2 parents acc81ad + 2e9eb2e commit cd8dec9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
run: |
pip install git+https://github.com/replicate/cog-safe-push.git
- name: "Inject secrets into cog-safe-push.yaml"
env:
HF_TOKEN: ${{ secrets.HF_WRITE_TO_TEST_FINE_TUNER_INTEGRATION }}
run: |
envsubst < cog-safe-push.yaml.tpl > cog-safe-push.yaml
- name: Run cog-safe-push to test the trainer and predictor and optionally push to production
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Expand Down
4 changes: 3 additions & 1 deletion cog-safe-push.yaml → cog-safe-push.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ train:

# tiny training with autocaption
- inputs:
input_images: "https://replicate.delivery/pbxt/LbXqvBzG3Bfo6CDkIkBNo8a8v6GWZGQrqxBrgeRpaQ1knkyD/me-tiny.zip"
input_images: https://replicate.delivery/pbxt/LbXqvBzG3Bfo6CDkIkBNo8a8v6GWZGQrqxBrgeRpaQ1knkyD/me-tiny.zip
steps: 50
autocaption: true
trigger_word: NDRS
hf_repo_id: replicate/test-flux-fine-tuner-integration
hf_token: "$HF_TOKEN"
match_prompt: "A dictionary of a version and weights which are a .tar file"

0 comments on commit cd8dec9

Please sign in to comment.