Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

command_line_tools.rst 1.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
  1. .. _Command-line Tools:
  2. Command-line Tools
  3. ==================
  4. Fairseq provides several command-line tools for training and evaluating models:
  5. - :ref:`preprocess.py`: Data pre-processing: build vocabularies and binarize training data
  6. - :ref:`train.py`: Train a new model on one or multiple GPUs
  7. - :ref:`generate.py`: Translate pre-processed data with a trained model
  8. - :ref:`interactive.py`: Translate raw text with a trained model
  9. - :ref:`score.py`: BLEU scoring of generated translations against reference translations
  10. - :ref:`eval_lm.py`: Language model evaluation
  11. .. _preprocess.py:
  12. preprocess.py
  13. ~~~~~~~~~~~~~
  14. .. automodule:: preprocess
  15. .. argparse::
  16. :module: preprocess
  17. :func: get_parser
  18. :prog: preprocess.py
  19. .. _train.py:
  20. train.py
  21. ~~~~~~~~
  22. .. automodule:: train
  23. .. argparse::
  24. :module: fairseq.options
  25. :func: get_training_parser
  26. :prog: train.py
  27. .. _generate.py:
  28. generate.py
  29. ~~~~~~~~~~~
  30. .. automodule:: generate
  31. .. argparse::
  32. :module: fairseq.options
  33. :func: get_generation_parser
  34. :prog: generate.py
  35. .. _interactive.py:
  36. interactive.py
  37. ~~~~~~~~~~~~~~
  38. .. automodule:: interactive
  39. .. argparse::
  40. :module: fairseq.options
  41. :func: get_interactive_generation_parser
  42. :prog: interactive.py
  43. .. _score.py:
  44. score.py
  45. ~~~~~~~~
  46. .. automodule:: score
  47. .. argparse::
  48. :module: score
  49. :func: get_parser
  50. :prog: score.py
  51. .. _eval_lm.py:
  52. eval_lm.py
  53. ~~~~~~~~~~
  54. .. automodule:: eval_lm
  55. .. argparse::
  56. :module: fairseq.options
  57. :func: get_eval_lm_parser
  58. :prog: eval_lm.py
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...