Comments (3)
Right now for load
logic is the following: we have mlem.api.load
function. Args include path
, repo
, rev
.
- If you pass
repo
, then we suppose model is located in a repo. - If you don't pass
repo
, then we supposepath
is a fsspec-compatible path.
When this is decided, we first try to check whether we can just read the model by path
, regardless of do we have .mlem
folder somewhere or not. Path may be to a link file or model folder, it doesn't matter. If this fails, we assume that the path
may be a link. We search for .mlem
directory starting from the given path
and going up, and when it is found, we treat all what's left as link name.
E.g., if we try to load("examples/dvc-pipeline/latest")
, we will find examples/dvc-pipeline/.mlem
folder and interpret latest
as a link name. (We probably need to just interpret last part of URI as a model name, cause I don't think we want to support links having slash in names, like nn/latest
).
Then we search .mlem
directory for all objects with the same name (called latest
in the example above) and raise an error if we found more or less than one. Otherwise we just load it.
@mike0sv, does this sound ok or something is missing?
from mlem.
In Alpha we've decided to address only "load" functionality.
"save to GH" functionality will be done in Beta in #18
from mlem.
As it works already, I close this ticket:
mlem/tests/core/test_metadata.py
Line 69 in 32938cc
from mlem.
Related Issues (20)
- flyctl deployment failure: org slug must be specified when not running interactively HOT 5
- `link` won't accept --rev flag / unexpected 404 HOT 5
- Expose custom information in FastAPI's `interface.json` HOT 1
- Expose GTO's model version in FastAPI's `interface.json` HOT 2
- Requirements aren't found when using `FunctionTransformer` HOT 1
- Confusing error in `deploy run flyio` when app exists HOT 2
- Bug: Validation error when loading linked model
- Pin flyctl version to <0.1.0 in MLEM
- Bug: image_name is missing from command arguments
- Use `classify-imports` instead of `isort` for import classification HOT 1
- Bug: Mlem couldn’t fetch your accounts information HOT 2
- Get started feedback
- How to use callbacks HOT 1
- fast.ai support HOT 2
- Fixing version collection HOT 2
- No clear way to overwrite requirements inferred by MLEM
- Uploading docker image is suboptimal
- Inferencing types at saving is not feasible sometimes
- Right way to add authentification middleware
- NameError: name 'UUID' is not defined HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlem.