learosema commited on
Commit
b5c9ef7
·
verified ·
1 Parent(s): 5790596

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags:
5
+ - webbee
6
+ - code-generation
7
+ - text2text-generation
8
+ - t5
9
+ - onnx
10
+ datasets:
11
+ - synthetic
12
+ pipeline_tag: text2text-generation
13
+ ---
14
+
15
+ # WebBee Delegate Models
16
+
17
+ Fine-tuned T5-small models used by [WebBee](https://github.com/learosema/webbee) —
18
+ a plain-English web development agent — for its Tier 2a inference pipeline.
19
+
20
+ Each model is an ONNX int8-quantised export of a T5-small checkpoint trained on
21
+ synthetic data. They run locally via [`@xenova/transformers`](https://huggingface.co/docs/transformers.js)
22
+ with no GPU required.
23
+
24
+ ## Models
25
+
26
+ ### `goal-to-steps/`
27
+
28
+ Decomposes a high-level development goal into a sequence of concrete WebBee commands.
29
+ This is WebBee-specific: the model knows the agent's verb vocabulary (`add`, `inject`,
30
+ `install`, `add route`, `add hook`, …) and the idiomatic step format used throughout
31
+ the system.
32
+
33
+ | | |
34
+ | --- | --- |
35
+ | **Task** | `text2text-generation` |
36
+ | **Input** | Natural-language goal (e.g. `"add authentication"`) |
37
+ | **Output** | Pipe-separated WebBee steps (e.g. `"add component LoginForm \| add hook useAuth \| add route api/auth"`) |
38
+ | **Training examples** | 533 synthetic goal→steps pairs across 8 categories |
39
+
40
+ ## Usage
41
+
42
+ ```js
43
+ import { pipeline } from '@xenova/transformers';
44
+
45
+ const generator = await pipeline(
46
+ 'text2text-generation',
47
+ 'learosema/webbee-delegate-models',
48
+ { subfolder: 'goal-to-steps' }
49
+ );
50
+
51
+ const result = await generator('add authentication');
52
+ console.log(result[0].generated_text);
53
+ // → add component LoginForm | add hook useAuth | add route api/auth
54
+ ```
55
+
56
+ ## Training
57
+
58
+ Models were trained and exported using the scripts in
59
+ [`packages/delegate-model/`](https://github.com/learosema/webbee/tree/main/packages/delegate-model)
60
+ of the WebBee repository.
61
+
62
+ Base model: [`google/t5-small`](https://huggingface.co/google/t5-small)
63
+ Quantization: ONNX int8 via [`optimum`](https://huggingface.co/docs/optimum)
64
+
65
+ ## License
66
+
67
+ Apache 2.0 — same as the base T5-small model.