Skip to content

Conversation

michaelfeil
Copy link
Contributor

🚀 What

  • breaks docker cache if the model cache repo has changed.

💻 How

🔬 Testing

)
model_cache_hash += hash_v1

if config.model_cache.is_v2:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is v1/v2 mutually exclusive? The control flow structure looks a bit unintuitive here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

theoretically, they are mutually exclusive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is just to break the legacy v1 cache.

RUN mkdir -p /app/model_cache
WORKDIR /app

RUN "echo hash {{model_cache_hash}}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the quotes intentional?
If model_cache_hash is the hash value, what is the purpose of the hash command here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its to break the model cache here / command below.

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