judotens commited on
Commit
f99ed92
·
verified ·
1 Parent(s): e83b149

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -23
README.md CHANGED
@@ -17,9 +17,9 @@ tags:
17
  pipeline_tag: text-generation
18
  ---
19
 
20
- # Flatbot-4M
21
 
22
- Flatbot-4M is the flagship demonstration model for **Flatbuild**.
23
 
24
  It is a compact conversational language model trained entirely from scratch using the Flatbuild framework. The goal is not to compete with large language models, but to demonstrate the complete workflow of building a modern transformer—from dataset generation and tokenizer training to model training, checkpoint export, and inference.
25
 
@@ -97,35 +97,20 @@ The dataset contains general-purpose conversations including greetings, introduc
97
 
98
  ## Usage
99
 
100
- ### Flatbuild
101
 
102
  ```bash
103
- flatbuild generate flatseek/Flatbot-4M \
104
- --chat \
105
- --prompt "Hello! What can you do?"
106
  ```
107
 
108
- ### Python
109
-
110
- ```python
111
- from flatbuild import AutoModel
112
-
113
- model = AutoModel.from_pretrained("flatseek/Flatbot-4M")
114
-
115
- print(
116
- model.generate(
117
- "Hello! What can you do?",
118
- chat=True,
119
- )
120
- )
121
- ```
122
 
123
  ### Flatrun
124
 
125
  ```bash
126
- flatrun model.gguf \
127
- --chat \
128
- --prompt "Hello!"
129
  ```
130
 
131
  ## Purpose
 
17
  pipeline_tag: text-generation
18
  ---
19
 
20
+ # Flatbot-micro-4M
21
 
22
+ Flatbot-micro-4M is the flagship demonstration model for **Flatbuild**.
23
 
24
  It is a compact conversational language model trained entirely from scratch using the Flatbuild framework. The goal is not to compete with large language models, but to demonstrate the complete workflow of building a modern transformer—from dataset generation and tokenizer training to model training, checkpoint export, and inference.
25
 
 
97
 
98
  ## Usage
99
 
100
+ ### Flatbuild Training
101
 
102
  ```bash
103
+ pip install flatbuild
104
+ flatbuild train config/demo_chat.yml
105
+ flatbuild export output/demo_chat/*/checkpoint/final --format gguf --output flatbot-micro-4M.gguf
106
  ```
107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
  ### Flatrun
110
 
111
  ```bash
112
+ pip install flatbuild
113
+ flatrun chat --model flatbot-micro-4M.gguf --prompt "Hello!"
 
114
  ```
115
 
116
  ## Purpose