Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/huggingface #77

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Feature/huggingface #77

merged 2 commits into from
Dec 11, 2024

Conversation

HCookie
Copy link
Member

@HCookie HCookie commented Dec 9, 2024

Improve huggingface loading

  • Allow specification of just repo_id
checkpoint:
   huggingface:
       repo_id: ecmwf/aifs-single

📚 Documentation preview 📚: https://anemoi-inference--77.org.readthedocs.build/en/77/

- Allow just `repo_id`
@HCookie HCookie force-pushed the feature/huggingface branch from 6860b51 to 1eebd23 Compare December 9, 2024 23:34
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.00%. Comparing base (b7b1440) to head (20f1dd1).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #77   +/-   ##
========================================
  Coverage    75.00%   75.00%           
========================================
  Files            1        1           
  Lines            4        4           
========================================
  Hits             3        3           
  Misses           1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@b8raoult b8raoult merged commit 584ddb7 into develop Dec 11, 2024
121 of 122 checks passed
@b8raoult b8raoult deleted the feature/huggingface branch December 11, 2024 18:07
Wauplin pushed a commit to huggingface/huggingface.js that referenced this pull request Dec 12, 2024
# Rework anemoi snippet

- Fix snippet to allow for easy instantiation
See ecmwf/anemoi-inference#77

```python
from anemoi.inference.runners.default import DefaultRunner
from anemoi.inference.config import Configuration
# Create Configuration
config = Configuration(checkpoint = {"huggingface":{"repo_id":"ecwmf/aifs-single"}})
# Load Runner
runner = DefaultRunner(config)
```
@HCookie HCookie mentioned this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants