Model Configuration¶
Model source and format configuration in gpux.yml.
Overview¶
The model section specifies the model file path and format.
model:
source: string # Required: Path to model file
format: string # Optional: Model format (default: "onnx")
version: string # Optional: Model version
Fields¶
source (required)¶
Path to the model file.
- Type:
stringorPath - Required: Yes
- Supports: Relative and absolute paths
Examples:
model:
source: ./model.onnx # Relative path
source: ./models/sentiment.onnx # Subdirectory
source: /opt/models/model.onnx # Absolute path
format¶
Model format specification.
- Type:
string - Required: No
- Default:
onnx - Supported:
onnx(others planned)
version¶
Model version (distinct from project version).
- Type:
string - Required: No
Examples¶
Minimal¶
Complete¶
Path Resolution¶
Paths are resolved relative to gpux.yml:
project/
├── gpux.yml
├── model.onnx # source: ./model.onnx
└── models/
└── model.onnx # source: ./models/model.onnx