Skip to content

Commit f425488

Browse files
Add digest as alternate hashes to tutorial examples and point to main medperf repo for references (mlcommons#657)
1 parent 2e85de8 commit f425488

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

server/seed_utils.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from django.contrib.auth import get_user_model
99

1010
ASSETS_URL = (
11-
"https://raw.githubusercontent.com/hasan7n/medperf/"
12-
"10622446c274823a68ce681e88e79506ecf4e380/examples/chestxray_tutorial/"
11+
"https://raw.githubusercontent.com/mlcommons/medperf/"
12+
"9bfb828ab19caf4fd9a4a90be69c693d4e2ff29d/examples/chestxray_tutorial/"
1313
)
1414

1515

@@ -113,7 +113,9 @@ def create_benchmark(api_server, benchmark_owner_token, admin_token):
113113
"image_hash": "d941e09d160bba3cf5c09b48f490e3b9e891597341e560954ff7512478eaef22",
114114
"additional_files_tarball_url": "",
115115
"additional_files_tarball_hash": "",
116-
"metadata": {},
116+
"metadata": {
117+
"digest": "f8697dc1c646395ad1ac54b8c0373195dbcfde0c4ef5913d4330a5fe481ae9a4"
118+
},
117119
},
118120
"id",
119121
)
@@ -157,7 +159,9 @@ def create_benchmark(api_server, benchmark_owner_token, admin_token):
157159
"image_hash": "877b8df79678215dfdcb63fe6bc1dab58e9c29113437c2c5627442551e3087c5",
158160
"image_tarball_url": "",
159161
"image_tarball_hash": "",
160-
"metadata": {},
162+
"metadata": {
163+
"digest": "a1bdddce05b9d156df359dd570de8031fdd1ea5a858f755139bed4a95fad19d1"
164+
},
161165
},
162166
"id",
163167
)
@@ -196,7 +200,9 @@ def create_benchmark(api_server, benchmark_owner_token, admin_token):
196200
"image_hash": "c61b4079be59ba3bb31090bdf89f7f603023f77d28ca0475b5320efaa36866aa",
197201
"additional_files_tarball_url": "",
198202
"additional_files_tarball_hash": "",
199-
"metadata": {},
203+
"metadata": {
204+
"digest": "d33904c1104d0a3df314f29c603901a8584fec01e58b90d7ae54c8d74d32986c"
205+
},
200206
},
201207
"id",
202208
)
@@ -286,7 +292,9 @@ def create_model(api_server, model_owner_token, benchmark_owner_token, benchmark
286292
"image_tarball_url": "",
287293
"image_tarball_hash": "",
288294
"image_hash": "33d26c8e266be9fe072081fb157313bfa51778b2934ab64bd622c8f0cd52dfa1",
289-
"metadata": {},
295+
"metadata": {
296+
"digest": "f27deb052eafd48ad1e350ceef7b0b9600aef0ea3f8cba47baee2b1d17411a83"
297+
},
290298
},
291299
"id",
292300
)

0 commit comments

Comments
 (0)