Skip to content

Commit 6492f9a

Browse files
committed
feat: add production deployment definition
Sources: native GitHub + testing fallback. GPU requirements encoded in profiling_data. Ready for cargo-tangle deploy --network testnet.
1 parent b75165b commit 6492f9a

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

deploy/definition.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"metadata_uri": "ipfs://",
3+
"manager": "0x0000000000000000000000000000000000000000",
4+
"metadata": {
5+
"name": "embedding-inference",
6+
"description": "Text embedding operator (dense vector generation) via TEI on Tangle",
7+
"author": "Tangle Network",
8+
"license": "MIT OR Apache-2.0",
9+
"website": "https://tangle.tools",
10+
"code_repository": "https://github.com/tangle-network/embedding-inference-blueprint",
11+
"profiling_data": "{\"execution_profile\":{\"gpu\":{\"policy\":\"preferred\",\"min_count\":1,\"min_vram_gb\":4}}}"
12+
},
13+
"config": {
14+
"membership": "Dynamic",
15+
"min_operators": 1,
16+
"max_operators": 0
17+
},
18+
"supported_memberships": ["Dynamic", "Fixed"],
19+
"jobs": [
20+
{
21+
"name": "embed",
22+
"params": ["(string,string)"],
23+
"result": ["(bytes,uint32)"],
24+
"verifier": "None"
25+
}
26+
],
27+
"sources": [
28+
{
29+
"kind": "Native",
30+
"native": {
31+
"fetcher": "Github",
32+
"entrypoint": "./embedding-operator",
33+
"github": {
34+
"owner": "tangle-network",
35+
"repo": "embedding-inference-blueprint",
36+
"tag": "v0.1.0",
37+
"binaries": [
38+
{
39+
"name": "embedding-operator",
40+
"arch": "amd64",
41+
"os": "linux",
42+
"sha256": "0000000000000000000000000000000000000000000000000000000000000000"
43+
}
44+
]
45+
}
46+
},
47+
"testing": {
48+
"cargo_package": "embedding-inference",
49+
"cargo_bin": "embedding-operator",
50+
"base_path": "."
51+
}
52+
}
53+
]
54+
}

0 commit comments

Comments
 (0)