Skip to content

Commit 7f22d18

Browse files
authored
adjust number and style in ainode (#1101)
1 parent e7771aa commit 7f22d18

16 files changed

Lines changed: 189 additions & 191 deletions

File tree

src/UserGuide/Master/Table/AI-capability/AINode_Upgrade_apache.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ It costs 1.615s
163163

164164
1. AINode uses Transformers v4.56.2; avoid inheriting interfaces from older versions (<4.50).
165165
2. The model must inherit an AINode inference pipeline class (currently supports forecasting pipeline):
166+
* iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic_pipeline.py
167+
166168
```python
167-
# iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic_pipeline.py
168169
class BasicPipeline(ABC):
169170
def __init__(self, model_id, **model_kwargs):
170171
self.model_info = model_info

src/UserGuide/Master/Table/AI-capability/AINode_Upgrade_timecho.md

Lines changed: 36 additions & 37 deletions
Large diffs are not rendered by default.

src/UserGuide/Master/Tree/AI-capability/AINode_Upgrade_apache.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Total line number = 48
137137

138138
1. AINode currently uses transformers v4.56.2, so when building the model, avoid inheriting from low versions (<4.50) interfaces;
139139
2. The model must inherit from a type of AINode inference task pipeline (currently supports forecast pipeline):
140-
1. iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic_pipeline.py
140+
* iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic_pipeline.py
141141

142142
```Python
143143
class BasicPipeline(ABC):
@@ -231,13 +231,13 @@ Total line number = 48
231231
}
232232
```
233233

234-
1. Must specify the model's Config class and model class through auto_map;
235-
2. Must integrate and specify the inference pipeline class;
236-
3. For built-in (builtin) and user-defined (user_defined) models managed by AINode, the model category (model_type) also serves as a unique identifier. That is, the model category to be registered must not duplicate any existing model types.
234+
* Must specify the model's Config class and model class through auto_map;
235+
* Must integrate and specify the inference pipeline class;
236+
* For built-in (builtin) and user-defined (user_defined) models managed by AINode, the model category (model_type) also serves as a unique identifier. That is, the model category to be registered must not duplicate any existing model types.
237237
4. Ensure the model directory to be registered contains the following files, and the model configuration file name and weight file name are not customizable:
238-
1. Model configuration file: config.json;
239-
2. Model weight file: model.safetensors;
240-
3. Model code: other .py files.
238+
* Model configuration file: config.json;
239+
* Model weight file: model.safetensors;
240+
* Model code: other .py files.
241241

242242
**The SQL syntax for registering a custom model is as follows:**
243243

src/UserGuide/Master/Tree/AI-capability/AINode_Upgrade_timecho.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ IoTDB> show models
217217

218218
1. AINode currently uses transformers version v4.56.2, so when building the model, it is necessary to **avoid inheriting low-version (<4.50) interfaces**;
219219
2. The model needs to inherit a type of AINode inference task pipeline (currently supports the forecasting pipeline):
220-
1. iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic\_pipeline.py
220+
* iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic\_pipeline.py
221221

222222
```Python
223223
class BasicPipeline(ABC):
@@ -311,13 +311,13 @@ IoTDB> show models
311311
}
312312
```
313313

314-
1. Must specify the model Config class and model class through auto\_map;
315-
2. Must integrate and specify the inference pipeline class;
316-
3. For AINode-managed built-in (builtin) and custom (user\_defined) models, the model category (model\_type) also serves as a unique identifier. That is, the model category to be registered must not be duplicated with any existing model type. Models created through fine-tuning will inherit the model category of the original model.
314+
* Must specify the model Config class and model class through auto\_map;
315+
* Must integrate and specify the inference pipeline class;
316+
* For AINode-managed built-in (builtin) and custom (user\_defined) models, the model category (model\_type) also serves as a unique identifier. That is, the model category to be registered must not be duplicated with any existing model type. Models created through fine-tuning will inherit the model category of the original model.
317317
4. Ensure that the model directory to be registered contains the following files, and the model configuration file name and weight file name are not customizable:
318-
1. Model configuration file: config.json;
319-
2. Model weight file: model.safetensors;
320-
3. Model code: other .py files.
318+
* Model configuration file: config.json;
319+
* Model weight file: model.safetensors;
320+
* Model code: other .py files.
321321

322322
**The SQL syntax for registering a custom model is as follows:**
323323

src/UserGuide/latest-Table/AI-capability/AINode_Upgrade_apache.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ It costs 1.615s
163163

164164
1. AINode uses Transformers v4.56.2; avoid inheriting interfaces from older versions (<4.50).
165165
2. The model must inherit an AINode inference pipeline class (currently supports forecasting pipeline):
166+
* iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic_pipeline.py
167+
166168
```python
167-
# iotdb-core/ainode/iotdb/ainode/core/inference/pipeline/basic_pipeline.py
168169
class BasicPipeline(ABC):
169170
def __init__(self, model_id, **model_kwargs):
170171
self.model_info = model_info

0 commit comments

Comments
 (0)