-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Machine Learning section improvements (#263)
- Loading branch information
Showing
7 changed files
with
118 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
spiceaidocs/docs/machine-learning/model-deployment/filesystem.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: 'Filesystem' | ||
sidebar_label: 'Filesystem' | ||
sidebar_position: 3 | ||
--- | ||
|
||
To use a model hosted on a filesystem, specify the file path in `from`. | ||
|
||
Example: | ||
|
||
```yaml | ||
models: | ||
- from: file://absolute/path/to/my/model.onnx | ||
name: local_fs_model | ||
datasets: | ||
- taxi_trips | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 16 additions & 14 deletions
30
spiceaidocs/docs/machine-learning/model-deployment/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
--- | ||
title: 'ML Model Deployment' | ||
sidebar_label: 'ML Model Deployment' | ||
title: 'Model Deployment' | ||
sidebar_label: 'Model Deployment' | ||
description: '' | ||
sidebar_position: 1 | ||
pagination_next: 'machine-learning/inference/index' | ||
--- | ||
|
||
Models can be loaded from a variety of sources: | ||
- Local filesystem: Local ONNX files. | ||
- HuggingFace: Models Hosted on HuggingFace. | ||
- SpiceAI: Models trained on the Spice.AI Cloud Platform | ||
Models can be loaded from: | ||
|
||
A model component, within a Spicepod, has the following format. | ||
- **Filesystem**: [ONNX](https://onnx.ai) models. | ||
- **HuggingFace**: ONNX and [GGUF](https://github.com/ggerganov/ggml/blob/master/docs/gguf.md) models hosted on [HuggingFace](https://huggingface.co). | ||
- **Spice Cloud Platform**: Models hosted on the [Spice Cloud Platform](https://docs.spice.ai) | ||
|
||
Defined in the `spicepod.yml`, a `model` component has the following format. | ||
|
||
| field | Description | | ||
| ----------------- | ------------------------------------------------------------------- | | ||
| `name` | Unique, readable name for the model within the Spicepod. | | ||
| `from` | Source-specific address to uniquely identify a model | | ||
| `datasets` | Datasets that the model depends on for inference | | ||
| `files` (HF only) | Specify an individual file within the HuggingFace repository to use | | ||
|
||
| ----------------- | ------------------------------------------------------------------- | | ||
| `name` | Unique, readable name for the model within the Spicepod. | | ||
| `from` | Source-specific address to uniquely identify a model | | ||
| `datasets` | Datasets that the model depends on for inference | | ||
| `files` (HF only) | Specify an individual file within the HuggingFace repository to use | | ||
|
||
For more detail, refer to the `model` [reference specification](../../reference/spicepod/models.md). | ||
|
||
## Model Source Docs | ||
|
||
import DocCardList from '@theme/DocCardList'; | ||
|
||
<DocCardList /> | ||
<DocCardList /> |
16 changes: 0 additions & 16 deletions
16
spiceaidocs/docs/machine-learning/model-deployment/local.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters