Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Imagine running a machine learning training job or any data processing task that takes hours or even days to complete. In such scenarios, you don't want failures or collaboration complexities to force you to start over and lose all the progress made. This is where Metaflow's new decorators—@checkpoint
, @model
, and @huggingface_hub
—come into play. These decorators are specifically designed to address these challenges by simplifying checkpointing, model management, and efficient loading of external models, ensuring that your long-running jobs can be resumed seamlessly after a failure and that models and checkpoints are properly versioned in multi-user environments.
This repository introduces three new decorators for Metaflow that address these challenges:
@checkpoint
: Simplifies saving and reloading checkpoints within your Metaflow flows.@huggingface_hub
: Enables efficient loading and caching of large models from Hugging Face Hub.@model
: Allows for easy saving and loading of models created during your Metaflow flows.Examples for these decorators can be found in this repository.
@checkpoint
DecoratorThe @checkpoint
decorator alleviates the pain points associated with saving and reloading the state of your program (a Metaflow @step
) in Metaflow flows. It also handles version control in multi-user settings by isolating checkpoints per user and run. Whether it's a checkpoint created by a machine learning model or intermediate data required in case of crashes, this decorator simplifies state management and failure recovery.
@step
at designated points.@huggingface_hub
DecoratorThe @huggingface_hub
decorator allows you to load large models from Hugging Face Hub and cache them for increased performance benefits. It also ensures that models are versioned and managed appropriately in multi-user environments.
@model
DecoratorThe @model
decorator provides a trivial way to save and load models/checkpoints created as part of your Metaflow flow.
@model
/@checkpoint
/@huggingface_hub
.FAQs
An EXPERIMENTAL checkpoint decorator for Metaflow
We found that metaflow-checkpoint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.