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

Integrate cache changes #42

Merged
merged 3 commits into from
Nov 10, 2024
Merged

Integrate cache changes #42

merged 3 commits into from
Nov 10, 2024

Conversation

dleemiller
Copy link
Owner

No description provided.

@dleemiller
Copy link
Owner Author

  • Removed weights_dir option in load()
    • Replaced with cache_dir
    • added path resolution for strings
    • unified tokenizer/weights cache to same dir
            Weights:
              1. Check in project root (`project_root / wordllama / weights / ...`).
              2. If not found, check in `cache_dir / weights / ...`.
              3. If still not found, download from Hugging Face to `cache_dir / weights / ...`.
          Tokenizer:
              1. Check in project root (`project_root / wordllama / tokenizers / ...`).
              2. If not found, check in `cache_dir / tokenizers / ...`.
              3. If still not found, download from Hugging Face to `cache_dir / tokenizers / ...`.   
    

Example Usage:

wl = WordLlama.load(dim=64, cache_dir="some_different_cache_folder/")

@dleemiller dleemiller merged commit da5f885 into main Nov 10, 2024
3 checks passed
@dleemiller dleemiller deleted the integrate-cache-changes branch February 2, 2025 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant