Module: ezkl_artifact
ArtifactGenerationArgs
Bases: BaseModel
Arguments for generating the proof artifacts.
Attributes:
Name | Type | Description |
---|---|---|
onnx_path |
Path
|
Path to the ONNX model |
input_visibility |
str
|
Visibility of the input |
output_visibility |
str
|
Visibility of the output |
param_visibility |
str
|
Visibility of the parameters |
Source code in src/infernet_ml/zk/ezkl/ezkl_artifact.py
EZKLArtifact
Bases: BaseModel
A base class to represent the artifacts generated or used by the EZKL library. It also has utility methods to upload the artifacts to the Arweave network, Huggingface Hub, or a local directory.
Attributes:
Name | Type | Description |
---|---|---|
compiled_model_path |
Path
|
Path to the compiled model |
settings_path |
Path
|
Path to the settings |
onnx_path |
Path
|
Path to the ONNX model |
calibration_path |
Path
|
Path to the calibration file |
srs_path |
Path
|
Path to the SRS file |
verifier_key_path |
Path
|
Path to the verifier key |
prover_key_path |
Path
|
Path to the prover key |
Source code in src/infernet_ml/zk/ezkl/ezkl_artifact.py
generate_ezkl_artifacts(args)
async
Generate artifacts for a model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
args |
ArtifactGenerationArgs
|
Arguments for generating artifacts |
required |
Returns:
Name | Type | Description |
---|---|---|
EZKLArtifact |
EZKLArtifact
|
An instance of the EZKLArtifact class |