Skip to content

Conversation

@assafvayner
Copy link
Contributor

Fix XET-478

@assafvayner assafvayner requested a review from rajatarya April 8, 2025 23:31
@assafvayner assafvayner changed the title Assaf/478 detect network file system Apr 9, 2025

if utils::is_network_fs(&XET_CACHE_PATH).unwrap_or_default() {
// TODO: check high perf mode/cache status and change to a warn log if not enabled
tracing::debug!("hf-xet detected your cache and session path is on a network file system, this can cause performance issues, consider setting HF_XET_HIGH_PERFORMANCE=1 or disabling the cache");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide the flag to disable the cache instead. It seems odd that "if network file system" -> "set HF_XET_HIGH_PERFORMANCE".

@assafvayner
Copy link
Contributor Author

closing as not planned for the moment, will open a new investigation if we do end up implementing this

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