Skip to content

Commit 917b799

Browse files
authored
Upgrade EZKL to 19.0.7 (#68)
1 parent d64e0dc commit 917b799

File tree

23 files changed

+85
-79
lines changed

23 files changed

+85
-79
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CircuitInputSchema(BaseModel):
2525

2626

2727
@InputRegistry.register(
28-
"ff9f4069387597719c74a936252aa7e441194d0bb8d422a59c3a581245ad7989"
28+
"22825c0d407161956e363b0d14d55d7d90c53706eebfa4fe9fcd839dae6a4a65"
2929
)
3030
class CircuitInput(BaseInput):
3131
def __init__(
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "SN48 PoW",
33
"description": "Generates weights based on miner scoring data from SN48.",
44
"author": "Inference Labs",
5-
"version": "0.0.2",
5+
"version": "0.0.3",
66
"proof_system": "EZKL",
77
"netuid": 48,
88
"weights_version": 0,
99
"type": "proof_of_weights",
1010
"external_files": {
11-
"pk.key": "https://storage.omron.ai/ff9f4069387597719c74a936252aa7e441194d0bb8d422a59c3a581245ad7989/pk.key"
11+
"pk.key": "https://storage.omron.ai/22825c0d407161956e363b0d14d55d7d90c53706eebfa4fe9fcd839dae6a4a65/pk.key"
1212
},
1313
"benchmark_choice_weight": 0.2
1414
}
Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"val": 0.0,
55
"scale": 1.0
66
},
7-
"input_scale": 20,
8-
"param_scale": 20,
7+
"input_scale": 17,
8+
"param_scale": 17,
99
"scale_rebase_multiplier": 1,
1010
"lookup_range": [
1111
0,
@@ -26,12 +26,13 @@
2626
"check_mode": "UNSAFE",
2727
"commitment": "KZG",
2828
"decomp_base": 16384,
29-
"decomp_legs": 2,
30-
"bounded_log_lookup": false
29+
"decomp_legs": 3,
30+
"bounded_log_lookup": false,
31+
"ignore_range_check_inputs_outputs": false
3132
},
32-
"num_rows": 901510,
33-
"total_assignments": 1803020,
34-
"total_const_size": 8,
33+
"num_rows": 1054691,
34+
"total_assignments": 2109383,
35+
"total_const_size": 9,
3536
"total_dynamic_col_size": 0,
3637
"max_dynamic_input_len": 0,
3738
"num_dynamic_lookups": 0,
@@ -67,16 +68,16 @@
6768
]
6869
],
6970
"model_output_scales": [
70-
20,
71+
17,
7172
0
7273
],
7374
"model_input_scales": [
74-
20,
75-
20,
76-
20,
77-
20,
78-
20,
79-
20,
75+
17,
76+
17,
77+
17,
78+
17,
79+
17,
80+
17,
8081
0
8182
],
8283
"model_input_types": [
@@ -101,19 +102,23 @@
101102
"required_range_checks": [
102103
[
103104
0,
104-
1048575
105+
16383
106+
],
107+
[
108+
0,
109+
131071
105110
],
106111
[
107112
-1,
108113
1
109114
],
110115
[
111116
0,
112-
16383
117+
1
113118
]
114119
],
115120
"check_mode": "UNSAFE",
116-
"version": "18.1.5",
121+
"version": "19.0.7",
117122
"num_blinding_factors": null,
118-
"timestamp": 1738371564833
123+
"timestamp": 1738862649686
119124
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CircuitInputSchema(BaseModel):
1313

1414

1515
@InputRegistry.register(
16-
"50818a54b31b3e0fe3306a7fb7826156fc2c42c9d64c6ba106ba135fbe7b7b19"
16+
"9617b621097f5c3dec355748aa63df58104e46ba2cd4efb5f57b560d59c1acd2"
1717
)
1818
class CircuitInput(BaseInput):
1919
def __init__(
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "LSTM",
33
"description": "Default LSTM benchmarker model.",
44
"author": "Inference Labs",
5-
"version": "0.0.2",
5+
"version": "0.0.3",
66
"proof_system": "EZKL",
77
"type": "proof_of_computation",
88
"external_files": {
9-
"pk.key": "https://storage.omron.ai/50818a54b31b3e0fe3306a7fb7826156fc2c42c9d64c6ba106ba135fbe7b7b19/pk.key"
9+
"pk.key": "https://storage.omron.ai/9617b621097f5c3dec355748aa63df58104e46ba2cd4efb5f57b560d59c1acd2/pk.key"
1010
},
1111
"benchmark_choice_weight": 0.2
1212
}
Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,51 @@
44
"val": 0.0,
55
"scale": 1.0
66
},
7-
"input_scale": 13,
8-
"param_scale": 13,
7+
"input_scale": 17,
8+
"param_scale": 17,
99
"scale_rebase_multiplier": 1,
1010
"lookup_range": [
11-
-8582,
12-
21116
11+
-137280,
12+
337848
1313
],
14-
"logrows": 18,
14+
"logrows": 19,
1515
"num_inner_cols": 2,
1616
"variables": [
1717
[
1818
"batch_size",
1919
1
2020
]
2121
],
22-
"input_visibility": "Public",
22+
"input_visibility": "Private",
2323
"output_visibility": "Public",
24-
"param_visibility": "Fixed",
24+
"param_visibility": "Private",
2525
"rebase_frac_zero_constants": false,
2626
"check_mode": "UNSAFE",
2727
"commitment": "KZG",
2828
"decomp_base": 16384,
29-
"decomp_legs": 2,
30-
"bounded_log_lookup": false
29+
"decomp_legs": 3,
30+
"bounded_log_lookup": false,
31+
"ignore_range_check_inputs_outputs": false
3132
},
32-
"num_rows": 244209,
33-
"total_assignments": 488418,
34-
"total_const_size": 3259,
33+
"num_rows": 303031,
34+
"total_assignments": 606063,
35+
"total_const_size": 5,
3536
"total_dynamic_col_size": 0,
3637
"max_dynamic_input_len": 0,
3738
"num_dynamic_lookups": 0,
3839
"num_shuffles": 0,
3940
"total_shuffle_col_size": 0,
4041
"model_instance_shapes": [
41-
[
42-
1,
43-
5,
44-
1
45-
],
4642
[
4743
1,
4844
1
4945
]
5046
],
5147
"model_output_scales": [
52-
13
48+
17
5349
],
5450
"model_input_scales": [
55-
13
51+
17
5652
],
5753
"model_input_types": [
5854
"F32"
@@ -69,27 +65,27 @@
6965
"required_lookups": [
7066
{
7167
"Sigmoid": {
72-
"scale": 8192.0
68+
"scale": 131072.0
7369
}
7470
},
7571
{
7672
"Tanh": {
77-
"scale": 8192.0
73+
"scale": 131072.0
7874
}
7975
}
8076
],
8177
"required_range_checks": [
82-
[
83-
-1,
84-
1
85-
],
8678
[
8779
0,
8880
16383
81+
],
82+
[
83+
-1,
84+
1
8985
]
9086
],
9187
"check_mode": "UNSAFE",
92-
"version": "18.1.5",
88+
"version": "19.0.7",
9389
"num_blinding_factors": null,
94-
"timestamp": 1738372231183
90+
"timestamp": 1738863387485
9591
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CircuitInputSchema(BaseModel):
4040

4141

4242
@InputRegistry.register(
43-
"e79286b7faed5eb22eaf30d38078fd30629876d5f62d734baa09930d20eb4acd"
43+
"c3d88b7b81ada251385f1fdc3c40ab7ec1673737fefda0ab21b19c8b19b28d10"
4444
)
4545
class CircuitInput(BaseInput):
4646
def __init__(
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "SN27 PoW 256",
33
"description": "The validator's reward model for SN27, designed to batch a single round of weight updates (256 changes per proof).",
44
"author": "Inference Labs",
5-
"version": "0.0.7",
5+
"version": "0.0.8",
66
"proof_system": "EZKL",
77
"netuid": 27,
88
"weights_version": 160,
99
"type": "proof_of_weights",
1010
"external_files": {
11-
"pk.key": "https://storage.omron.ai/e79286b7faed5eb22eaf30d38078fd30629876d5f62d734baa09930d20eb4acd/pk.key"
11+
"pk.key": "https://storage.omron.ai/c3d88b7b81ada251385f1fdc3c40ab7ec1673737fefda0ab21b19c8b19b28d10/pk.key"
1212
},
1313
"benchmark_choice_weight": 0.2
1414
}
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
"check_mode": "UNSAFE",
2727
"commitment": "KZG",
2828
"decomp_base": 16384,
29-
"decomp_legs": 2,
30-
"bounded_log_lookup": false
29+
"decomp_legs": 3,
30+
"bounded_log_lookup": false,
31+
"ignore_range_check_inputs_outputs": false
3132
},
32-
"num_rows": 701193,
33-
"total_assignments": 1402386,
34-
"total_const_size": 12,
33+
"num_rows": 759989,
34+
"total_assignments": 1519979,
35+
"total_const_size": 13,
3536
"total_dynamic_col_size": 0,
3637
"max_dynamic_input_len": 0,
3738
"num_dynamic_lookups": 0,
@@ -166,6 +167,10 @@
166167
}
167168
],
168169
"required_range_checks": [
170+
[
171+
0,
172+
1
173+
],
169174
[
170175
0,
171176
16383
@@ -176,7 +181,7 @@
176181
]
177182
],
178183
"check_mode": "UNSAFE",
179-
"version": "18.1.5",
184+
"version": "19.0.7",
180185
"num_blinding_factors": null,
181-
"timestamp": 1738370108851
186+
"timestamp": 1738859007693
182187
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"attrs==24.3.0",
1313
"bittensor==8.5.2",
1414
"boto3>=1.36.13",
15-
"ezkl==18.1.5",
15+
"ezkl==19.0.7",
1616
"fastapi==0.110.3",
1717
"jsonrpcserver>=5.0.9",
1818
"numpy==2.0.2",

requirements.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ eth-typing==5.1.0 \
180180
eth-utils==2.2.2 \
181181
--hash=sha256:2580a8065273f62ca1ec4c175228c52e626a5f1007e965d2117e5eca1a93cae8 \
182182
--hash=sha256:5ca6265177ce544d9d43cdf2272ae2227e5d6d9529c270bbb707d17339087101
183-
ezkl==18.1.5 \
184-
--hash=sha256:42f651f09f097fc56a5f9ef6b870d0e99f38f57e576b0e7a13835b4868266de5 \
185-
--hash=sha256:4df889594aee1be06bf47bba3e4a46e3d31a2741cb58455f7e6da2e5ba12a678 \
186-
--hash=sha256:5845905e545186e870dcd7391de6de7699d6d8097d3af4126fb7c3d8160218af \
187-
--hash=sha256:9790eaba702e7ed59397630307b0e396d469c5908bd794d8c5529d8682055da2 \
188-
--hash=sha256:aa539decf9d323e1273eb10799742a6515090d89c1721e85d7f7d29d101200e9 \
189-
--hash=sha256:abb22f2994900ee7e9219a73b41bf89cf03bd9a0bddc1910d364d4c3e52b6c2c \
190-
--hash=sha256:cb80ff2b10a91873e00e2d6a573e1a521b2e4091e3bdac98e87225c2507da9f9
183+
ezkl==19.0.7 \
184+
--hash=sha256:07cdc57dccff139d1904dbed2aadece70c15e2e83283121a58646de066d9f1b5 \
185+
--hash=sha256:5fcddc679bb316fab1227621bf66c780a8dae78babf15f235a27ea37ca600546 \
186+
--hash=sha256:9456f75dfcc7127a3dae1df98e9145651cf4b559224aa78c3e73d03f25164b06 \
187+
--hash=sha256:97e0a842ec1b6ef8402dca6a0721dcbc9c4815476f746bced42be1662bdc8cec \
188+
--hash=sha256:a8b2f4fb876dbec7151262d89691c2afe18c4448df09e258b5b75f2d73dc7e54 \
189+
--hash=sha256:bb06c9cc9be222dccdb79792b0b8ad60c3d83c911332c9c4c8355f30e46d99ec \
190+
--hash=sha256:e0a17c46a44aa94c6178c2c8417ac0e1dc0999db4364ffbced474986e8c6144c
191191
fastapi==0.110.3 \
192192
--hash=sha256:555700b0159379e94fdbfc6bb66a0f1c43f4cf7060f25239af3d84b63a656626 \
193193
--hash=sha256:fd7600612f755e4050beb74001310b5a7e1796d149c2ee363124abdfa0289d32

uv.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)