vincenthuynh commited on
Commit
bc074eb
·
verified ·
1 Parent(s): d8b3a50

Initial README

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # **Text-to-API Command Model**
2
+
3
+ This repository contains a fine-tuned T5-Small model trained to convert natural language commands into standardized API commands. The model is designed for use cases where human-written instructions need to be translated into machine-readable commands for home automation systems or other API-driven platforms.
4
+
5
+ ## **Model Details**
6
+
7
+ - **Base Model:** T5-Small
8
+ - **Task:** Text-to-API command generation
9
+ - **Dataset:** A custom dataset of natural language commands paired with their corresponding API commands.
10
+ - **Training Framework:** PyTorch and Hugging Face Transformers
11
+ - **Input Format:** Natural language text, such as "Turn off the kitchen lights."
12
+ - **Output Format:** API command, such as `turn_off.kitchen_lights`.
13
+
14
+ ---
15
+
16
+ ## **Training Details**
17
+
18
+ - **Dataset Details**:The model was trained on a dataset of command pairs. Each pair consisted of:
19
+ - A natural language input (e.g., "Please lock the front door.")
20
+ - A corresponding API-style output (e.g., `lock.front_door`).
21
+ - The dataset was split into:
22
+ - **90% Training Data**
23
+ - **10% Validation Data**
24
+
25
+ - **Model Configuration**
26
+ - **Pre-trained Model:** T5-Small
27
+ - **Maximum Input and Output Sequence Lengths:** 128 tokens
28
+ - **Learning Rate:** 5e-5
29
+ - **Batch Size:** 16
30
+ - **Hardware:** The model was fine-tuned using a CUDA-enabled GPU.
31
+
32
+ ---
33
+
34
+ ## **Evaluation**
35
+
36
+ The model was evaluated using validation data during training. Metrics used for evaluation include:
37
+
38
+ - **Loss:** Averaged across training and validation batches.
39
+ - **Qualitative Analysis:** Demonstrates strong alignment between input commands and output API commands.
40
+
41
+ ---
42
+
43
+ ## **Intended Use**
44
+
45
+ This model is designed for:
46
+
47
+ - Translating user-friendly commands into machine-readable API instructions.
48
+ - Home automation systems, IoT devices, and other API-driven platforms requiring natural language input.
49
+
50
+ ---
51
+
52
+ ## **Limitations**
53
+
54
+ - The model may not generalize well to commands outside the scope of its training data.
55
+ - Ambiguous or overly complex inputs may produce unexpected outputs.
56
+ - Fine-tuning on domain-specific data is recommended for specialized use cases.
57
+