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

macros.py 493 B

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
  1. NUM_LAYERS = 12
  2. NUM_HEAD = 16
  3. N_DIM = 1024
  4. PREFIX_MODE = 1
  5. NUM_QUANTIZERS = 8
  6. SAMPLE_RATE = 24000
  7. lang2token = {
  8. 'zh': "[ZH]",
  9. 'ja': "[JA]",
  10. "en": "[EN]",
  11. 'mix': "",
  12. }
  13. lang2code = {
  14. 'zh': 0,
  15. 'ja': 1,
  16. "en": 2,
  17. }
  18. token2lang = {
  19. '[ZH]': "zh",
  20. '[JA]': "ja",
  21. "[EN]": "en",
  22. "": "mix"
  23. }
  24. code2lang = {
  25. 0: 'zh',
  26. 1: 'ja',
  27. 2: "en",
  28. }
  29. langdropdown2token = {
  30. 'English': "[EN]",
  31. '中文': "[ZH]",
  32. '日本語': "[JA]",
  33. 'Mix': "",
  34. }
Tip!

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

Comments

Loading...