Edoigtrd commited on
Commit
2c976e8
1 Parent(s): f7ac4ce

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -11
README.md CHANGED
@@ -1,15 +1,8 @@
1
- ---
2
- license: cc-by-nc-sa-2.0
3
- datasets:
4
- - Edoigtrd/tldr-pages
5
- language:
6
- - en
7
- library_name: transformers
8
- ---
9
-
10
  # T5-nl2cmd
11
 
12
- This repository contains the trained model, fine-tuned from the [Flan-T5 base](https://huggingface.co/google/flan-t5-base) model, to generate command line instructions from natural language descriptions.
 
 
13
 
14
  # Training data
15
 
@@ -23,10 +16,13 @@ The model is fine-tuned from the [Flan-T5 base](https://huggingface.co/google/fl
23
 
24
  It has been trained on a single Nvidia L4 from Scaleway, for 4 hours and 4 epochs.
25
 
26
- The model aims to generate command line instructions from natural language descriptions.
 
27
 
28
  # Results
29
 
 
 
30
  | Metric | Flan-T5 - Nl2cmd |
31
  |--------------------|------------|
32
  | exact | 0.064 |
@@ -35,6 +31,25 @@ The model aims to generate command line instructions from natural language descr
35
  | levenstein average | 0.612479 |
36
  | levenstein median | 0.608696 |
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  # License :
39
 
40
  [Creative Commons cc-by-nc-sa 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
 
 
 
 
 
 
 
 
 
 
1
  # T5-nl2cmd
2
 
3
+ T5-nl2cmd is a model that generates bash commands from natural language descriptions.
4
+
5
+ This repository contains the trained model, fine-tuned from [Flan-T5 base](https://huggingface.co/google/flan-t5-base).
6
 
7
  # Training data
8
 
 
16
 
17
  It has been trained on a single Nvidia L4 from Scaleway, for 4 hours and 4 epochs.
18
 
19
+ The model aims to generate bash commands from natural language descriptions.
20
+
21
 
22
  # Results
23
 
24
+ > The results are evaluated on an 500 eval subset of the data cited above.
25
+
26
  | Metric | Flan-T5 - Nl2cmd |
27
  |--------------------|------------|
28
  | exact | 0.064 |
 
31
  | levenstein average | 0.612479 |
32
  | levenstein median | 0.608696 |
33
 
34
+ # Examples :
35
+
36
+ | Task | Command |
37
+ |------|---------|
38
+ | Count time, calls, and errors for each system call and report a summary on program exit | `slurmctl -c path/to/file` |
39
+ | Search for a word in all the normal/regular files in the current folder | `find . -type f -exec grep -H` |
40
+ | Start the daemon with verbose output coming from specific files in the bluetoothd or plugins source | `bluetoothd-start --verbose path/to/file` |
41
+ | Find all directories under current directory and make them read, write, and executable for owner & group and remove read-write-execute permission for others | `find . -type d -exec chmod ug=` |
42
+ | Set the verbosity level (error, warn, info, debug, or trace) | `svn -v verbosity` |
43
+ | Show the configuration of a virtual machine, specifying its ID | `qm show vm_id` |
44
+ | Import VPN configuration | `ipconfig import config` |
45
+ | Find all the files ending with ".coffee" in the current folder and search for the words "re" in each line | `find . -name "*.coffee" -exec grep` |
46
+ | Run a program from a file | `pstool --run path/to/file` |
47
+ | Display details and metadata about a specified portable service image | `portablectl show-image path/to/image` |
48
+ | Display all the files in the current folder excluding those which are in the path of ".git" | `find . -path '*.git' -prune -` |
49
+ | Find all *.ogg files on the system ignoring the case | `find / -iname "*.ogg"` |
50
+ | Print and recursively remove the alphabetically last directory in the current directory | `rmdir -rf` |
51
+
52
+
53
  # License :
54
 
55
  [Creative Commons cc-by-nc-sa 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)