Spaces:
Running on Zero
Running on Zero
File size: 5,031 Bytes
10d0c77 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | {
"schema_version": "2",
"name": "North Micro Vision Instruct",
"description": "Visual question answering, captioning, OCR, and grounding with CohereLabs/North-Micro-Vision-Instruct (2.4B native-resolution VLM) on ZeroGPU, driven by a gr.Workflow fn-bound @spaces.GPU function. Single Space: the workflow frontend and the GPU worker share one process.",
"runtime": { "default": "client" },
"view": { "default": "canvas" },
"references": [
{
"id": "ref_image",
"label": "Input Image",
"role": "reference",
"asset_type": "image",
"inputs": [{ "id": "in", "label": "Image", "type": "image" }],
"outputs": [{ "id": "out", "label": "Image", "type": "image" }],
"x": 60,
"y": 120,
"width": 240,
"height": 140,
"data": {}
},
{
"id": "ref_prompt",
"label": "Prompt",
"role": "reference",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Prompt", "type": "text" }],
"outputs": [{ "id": "out", "label": "Prompt", "type": "text" }],
"x": 60,
"y": 300,
"width": 240,
"height": 120,
"data": { "out": "What do you see in this image?" }
},
{
"id": "ref_max_tokens",
"label": "Max New Tokens",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Max New Tokens", "type": "number" }],
"outputs": [{ "id": "out", "label": "Max New Tokens", "type": "number" }],
"x": 60,
"y": 460,
"width": 200,
"height": 90,
"data": { "out": 256 }
},
{
"id": "ref_temperature",
"label": "Temperature",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Temperature", "type": "number" }],
"outputs": [{ "id": "out", "label": "Temperature", "type": "number" }],
"x": 60,
"y": 570,
"width": 200,
"height": 90,
"data": { "out": 0.7 }
},
{
"id": "ref_top_p",
"label": "Top P",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Top P", "type": "number" }],
"outputs": [{ "id": "out", "label": "Top P", "type": "number" }],
"x": 60,
"y": 680,
"width": 200,
"height": 90,
"data": { "out": 0.8 }
},
{
"id": "ref_top_k",
"label": "Top K",
"role": "reference",
"asset_type": "number",
"inputs": [{ "id": "in", "label": "Top K", "type": "number" }],
"outputs": [{ "id": "out", "label": "Top K", "type": "number" }],
"x": 60,
"y": 790,
"width": 200,
"height": 90,
"data": { "out": 20 }
}
],
"operators": [
{
"id": "op_vlm",
"label": "run_vlm",
"role": "operator",
"kind": "fn",
"source": "fn",
"fn": "run_vlm",
"inputs": [
{ "id": "in_0", "label": "image", "type": "image", "required": true },
{ "id": "in_1", "label": "prompt", "type": "text", "required": true },
{ "id": "in_2", "label": "max_new_tokens", "type": "number" },
{ "id": "in_3", "label": "temperature", "type": "number" },
{ "id": "in_4", "label": "top_p", "type": "number" },
{ "id": "in_5", "label": "top_k", "type": "number" }
],
"outputs": [
{ "id": "out_0", "label": "response", "type": "text", "output_index": 0 }
],
"x": 420,
"y": 380,
"width": 280,
"height": 220,
"data": {}
}
],
"subjects": [
{
"id": "sub_response",
"label": "Response",
"role": "subject",
"asset_type": "text",
"inputs": [{ "id": "in", "label": "Response", "type": "text" }],
"outputs": [{ "id": "out", "label": "Response", "type": "text" }],
"x": 820,
"y": 380,
"width": 280,
"height": 140,
"data": {}
}
],
"edges": [
{ "id": "e_image", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_vlm", "to_port_id": "in_0", "type": "image" },
{ "id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_vlm", "to_port_id": "in_1", "type": "text" },
{ "id": "e_max_tokens", "from_node_id": "ref_max_tokens", "from_port_id": "out", "to_node_id": "op_vlm", "to_port_id": "in_2", "type": "number" },
{ "id": "e_temperature", "from_node_id": "ref_temperature", "from_port_id": "out", "to_node_id": "op_vlm", "to_port_id": "in_3", "type": "number" },
{ "id": "e_top_p", "from_node_id": "ref_top_p", "from_port_id": "out", "to_node_id": "op_vlm", "to_port_id": "in_4", "type": "number" },
{ "id": "e_top_k", "from_node_id": "ref_top_k", "from_port_id": "out", "to_node_id": "op_vlm", "to_port_id": "in_5", "type": "number" },
{ "id": "e_response", "from_node_id": "op_vlm", "from_port_id": "out_0", "to_node_id": "sub_response", "to_port_id": "in", "type": "text" }
]
}
|