You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`redis-model-store` is a simple Python library designed to handle versioning and serialization of AI/ML models into Redis. It provides a streamlined way to manage your machine learning models in Redis.
4
10
5
11
## Features
@@ -8,7 +14,6 @@
8
14
-**Sharding for Large Models**: Splits large serialized payloads into manageable chunks to optimize Redis storage.
9
15
-**Version Management**: Automatically manages model versions in Redis, allowing you to store and retrieve specific versions.
10
16
11
-
---
12
17
13
18
## Installation
14
19
```bash
@@ -49,12 +54,16 @@ model = RandomForestClassifier()
49
54
model.fit(X_train, y_train)
50
55
51
56
# Save the model to Redis
52
-
version = model_store.save_model(model, "random_forest")
57
+
version = model_store.save_model(model, name="random_forest", description="Random forest classifier model")
53
58
```
54
59
55
60
### Load models
56
61
```python
57
62
# Grab the latest model
58
-
model = model_store.load_model("random_forest")
63
+
model = model_store.load_model(name="random_forest")
64
+
65
+
# Grab a specific model version
66
+
model = model_store.load_model(name="random_forest", version=version)
0 commit comments