Update README.md
Browse files
README.md
CHANGED
|
@@ -31,12 +31,14 @@ For browser/offline use:
|
|
| 31 |
|
| 32 |
## What It Does
|
| 33 |
|
|
|
|
| 34 |
Input: "50x30mm mounting plate with 4 corner holes"
|
| 35 |
Output: C 50 30 5
|
| 36 |
Y 2.5 10
|
| 37 |
T 1 5 5 0
|
| 38 |
D 0 2
|
| 39 |
...
|
|
|
|
| 40 |
|
| 41 |
The Compact IR output can be parsed and evaluated by the [vcad
|
| 42 |
kernel](https://github.com/campedersen/vcad) to produce editable parametric
|
|
@@ -80,14 +82,19 @@ do_sample=True)
|
|
| 80 |
ir = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:],
|
| 81 |
skip_special_tokens=True)
|
| 82 |
print(ir)
|
|
|
|
| 83 |
|
| 84 |
-
API Endpoint
|
| 85 |
|
|
|
|
| 86 |
curl -X POST https://ecto--cad0-training-inference-infer.modal.run \
|
| 87 |
-H "Content-Type: application/json" \
|
| 88 |
-d '{"prompt": "L-bracket with mounting holes", "temperature": 0.1}'
|
|
|
|
| 89 |
|
| 90 |
-
Compact IR Reference
|
|
|
|
|
|
|
| 91 |
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
|
| 92 |
β Op β Syntax β Description β
|
| 93 |
ββββββββββββββββΌβββββββββββββββΌβββββββββββββββββββββββββββββββββββ€
|
|
@@ -117,9 +124,13 @@ Compact IR Reference
|
|
| 117 |
ββββββββββββββββΌβββββββββββββββΌβββββββββββββββββββββββββββββββββββ€
|
| 118 |
β Chamfer β CH n d β Bevel edges with distance d β
|
| 119 |
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββββββββββββββββββββββ
|
|
|
|
|
|
|
| 120 |
Nodes are 0-indexed; each line creates a new node.
|
| 121 |
|
| 122 |
-
Training
|
|
|
|
|
|
|
| 123 |
βββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
|
| 124 |
β Parameter β Value β
|
| 125 |
βββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
|
@@ -143,7 +154,11 @@ Training
|
|
| 143 |
βββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
| 144 |
β Training time β 9h 15m β
|
| 145 |
βββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
|
| 146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
|
| 148 |
β Metric β Value β
|
| 149 |
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
|
@@ -153,7 +168,9 @@ Evaluation
|
|
| 153 |
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
| 154 |
β Out-of-distribution β Limited (see Limitations) β
|
| 155 |
ββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
|
| 156 |
-
|
|
|
|
|
|
|
| 157 |
|
| 158 |
- Training bias: May add features (holes, fillets) to simple primitives β training
|
| 159 |
data weighted toward complex manufactured parts
|
|
@@ -162,7 +179,7 @@ data weighted toward complex manufactured parts
|
|
| 162 |
workarounds
|
| 163 |
- OOD generalization: Struggles with part types not in training distribution
|
| 164 |
|
| 165 |
-
Related
|
| 166 |
|
| 167 |
- https://github.com/campedersen/vcad β Open-source parametric CAD with custom BRep
|
| 168 |
kernel
|
|
@@ -170,7 +187,7 @@ kernel
|
|
| 170 |
- https://huggingface.co/campedersen/cad0-mini β 0.5B distilled model for browser
|
| 171 |
inference
|
| 172 |
|
| 173 |
-
Citation
|
| 174 |
|
| 175 |
@misc{cad0,
|
| 176 |
author = {Cam Pedersen},
|
|
@@ -180,7 +197,7 @@ Citation
|
|
| 180 |
url = {https://huggingface.co/campedersen/cad0}
|
| 181 |
}
|
| 182 |
|
| 183 |
-
License
|
| 184 |
|
| 185 |
MIT
|
| 186 |
|
|
|
|
| 31 |
|
| 32 |
## What It Does
|
| 33 |
|
| 34 |
+
```
|
| 35 |
Input: "50x30mm mounting plate with 4 corner holes"
|
| 36 |
Output: C 50 30 5
|
| 37 |
Y 2.5 10
|
| 38 |
T 1 5 5 0
|
| 39 |
D 0 2
|
| 40 |
...
|
| 41 |
+
```
|
| 42 |
|
| 43 |
The Compact IR output can be parsed and evaluated by the [vcad
|
| 44 |
kernel](https://github.com/campedersen/vcad) to produce editable parametric
|
|
|
|
| 82 |
ir = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:],
|
| 83 |
skip_special_tokens=True)
|
| 84 |
print(ir)
|
| 85 |
+
```
|
| 86 |
|
| 87 |
+
### API Endpoint
|
| 88 |
|
| 89 |
+
```
|
| 90 |
curl -X POST https://ecto--cad0-training-inference-infer.modal.run \
|
| 91 |
-H "Content-Type: application/json" \
|
| 92 |
-d '{"prompt": "L-bracket with mounting holes", "temperature": 0.1}'
|
| 93 |
+
```
|
| 94 |
|
| 95 |
+
## Compact IR Reference
|
| 96 |
+
|
| 97 |
+
```
|
| 98 |
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
|
| 99 |
β Op β Syntax β Description β
|
| 100 |
ββββββββββββββββΌβββββββββββββββΌβββββββββββββββββββββββββββββββββββ€
|
|
|
|
| 124 |
ββββββββββββββββΌβββββββββββββββΌβββββββββββββββββββββββββββββββββββ€
|
| 125 |
β Chamfer β CH n d β Bevel edges with distance d β
|
| 126 |
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββββββββββββββββββββββ
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
Nodes are 0-indexed; each line creates a new node.
|
| 130 |
|
| 131 |
+
## Training
|
| 132 |
+
|
| 133 |
+
```
|
| 134 |
βββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
|
| 135 |
β Parameter β Value β
|
| 136 |
βββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
|
|
|
| 154 |
βββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
| 155 |
β Training time β 9h 15m β
|
| 156 |
βββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
## Evaluation
|
| 160 |
+
|
| 161 |
+
```
|
| 162 |
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββ
|
| 163 |
β Metric β Value β
|
| 164 |
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
|
|
|
| 168 |
ββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββ€
|
| 169 |
β Out-of-distribution β Limited (see Limitations) β
|
| 170 |
ββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββ
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
## Limitations
|
| 174 |
|
| 175 |
- Training bias: May add features (holes, fillets) to simple primitives β training
|
| 176 |
data weighted toward complex manufactured parts
|
|
|
|
| 179 |
workarounds
|
| 180 |
- OOD generalization: Struggles with part types not in training distribution
|
| 181 |
|
| 182 |
+
## Related
|
| 183 |
|
| 184 |
- https://github.com/campedersen/vcad β Open-source parametric CAD with custom BRep
|
| 185 |
kernel
|
|
|
|
| 187 |
- https://huggingface.co/campedersen/cad0-mini β 0.5B distilled model for browser
|
| 188 |
inference
|
| 189 |
|
| 190 |
+
## Citation
|
| 191 |
|
| 192 |
@misc{cad0,
|
| 193 |
author = {Cam Pedersen},
|
|
|
|
| 197 |
url = {https://huggingface.co/campedersen/cad0}
|
| 198 |
}
|
| 199 |
|
| 200 |
+
## License
|
| 201 |
|
| 202 |
MIT
|
| 203 |
|