Skip to content

Commit

Permalink
back to run
Browse files Browse the repository at this point in the history
  • Loading branch information
eljandoubi committed Aug 24, 2024
1 parent 914aa6f commit 869ef45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
- name: Build
run: |
make build
- name: Run
run: |
make run
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Clean
run: |
make clean
1 change: 1 addition & 0 deletions src/utils/model_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def load_hf_model(model_id: str,
tensors[key] = f.get_tensor(key)

# Load the model's config
print("Load the model's config")
with open(os.path.join(model_path, "config.json"), "r", encoding="utf-8") as f:
model_config_file = json.load(f)
config = PaliGemmaConfig.from_dict(model_config_file)
Expand Down

0 comments on commit 869ef45

Please sign in to comment.