Skip to content

Conversation

@copybara-service
Copy link

Allow loading tokenizer model from a local cache directory.

Introduce the GEMMA_CACHE_DIR environment variable (Default to ~/.gemma). If set, the tokenizer will attempt to load the tokenizer_gemma2.model file from this directory instead of downloading it. This helps in environments where network access is limited or to avoid repeated downloads.

@copybara-service copybara-service bot force-pushed the test_813144484 branch 4 times, most recently from 7294d37 to df7c3df Compare October 14, 2025 09:08
Introduce the `GEMMA_CACHE_DIR` environment variable (Default to `~/.gemma`). If set, the tokenizer will attempt to load the `tokenizer_gemma2.model` file from this directory instead of downloading it. This helps in environments where network access is limited or to avoid repeated downloads.

PiperOrigin-RevId: 819084710
@copybara-service copybara-service bot merged commit bfd26f2 into main Oct 14, 2025
@copybara-service copybara-service bot deleted the test_813144484 branch October 14, 2025 09:17
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.

2 participants