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

.env.template 6.1 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
  1. # template used in production for HuggingChat.
  2. MODELS=`[
  3. {
  4. "name": "meta-llama/Llama-2-70b-chat-hf",
  5. "description": "The latest and biggest model from Meta, fine-tuned for chat.",
  6. "websiteUrl": "https://ai.meta.com/llama/",
  7. "userMessageToken": "",
  8. "userMessageEndToken": " [/INST] ",
  9. "assistantMessageToken": "",
  10. "assistantMessageEndToken": " </s><s>[INST] ",
  11. "preprompt": " ",
  12. "chatPromptTemplate" : "<s>[INST] <<SYS>>\n{{preprompt}}\n<</SYS>>\n\n{{#each messages}}{{#ifUser}}{{content}} [/INST] {{/ifUser}}{{#ifAssistant}}{{content}} </s><s>[INST] {{/ifAssistant}}{{/each}}",
  13. "promptExamples": [
  14. {
  15. "title": "Write an email from bullet list",
  16. "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
  17. }, {
  18. "title": "Code a snake game",
  19. "prompt": "Code a basic snake game in python, give explanations for each step."
  20. }, {
  21. "title": "Assist in a task",
  22. "prompt": "How do I make a delicious lemon cheesecake?"
  23. }
  24. ],
  25. "parameters": {
  26. "temperature": 0.1,
  27. "top_p": 0.95,
  28. "repetition_penalty": 1.2,
  29. "top_k": 50,
  30. "truncate": 1000,
  31. "max_new_tokens": 1024
  32. }
  33. },
  34. {
  35. "name": "codellama/CodeLlama-34b-Instruct-hf",
  36. "displayName": "codellama/CodeLlama-34b-Instruct-hf",
  37. "description": "Code Llama, a state of the art code model from Meta.",
  38. "websiteUrl": "https://about.fb.com/news/2023/08/code-llama-ai-for-coding/",
  39. "userMessageToken": "",
  40. "userMessageEndToken": " [/INST] ",
  41. "assistantMessageToken": "",
  42. "assistantMessageEndToken": " </s><s>[INST] ",
  43. "preprompt": " ",
  44. "chatPromptTemplate" : "<s>[INST] <<SYS>>\n{{preprompt}}\n<</SYS>>\n\n{{#each messages}}{{#ifUser}}{{content}} [/INST] {{/ifUser}}{{#ifAssistant}}{{content}} </s><s>[INST] {{/ifAssistant}}{{/each}}",
  45. "promptExamples": [
  46. {
  47. "title": "Fibonacci in Python",
  48. "prompt": "Write a python function to calculate the nth fibonacci number."
  49. }, {
  50. "title": "JavaScript promises",
  51. "prompt": "How can I wait for multiple JavaScript promises to fulfill before doing something with their values?"
  52. }, {
  53. "title": "Rust filesystem",
  54. "prompt": "How can I load a file from disk in Rust?"
  55. }
  56. ],
  57. "parameters": {
  58. "temperature": 0.1,
  59. "top_p": 0.95,
  60. "repetition_penalty": 1.2,
  61. "top_k": 50,
  62. "truncate": 1000,
  63. "max_new_tokens": 2048
  64. }
  65. },
  66. {
  67. "name": "tiiuae/falcon-180B-chat",
  68. "displayName": "tiiuae/falcon-180B-chat",
  69. "description": "Falcon-180B is a 180B parameters causal decoder-only model built by TII and trained on 3,500B tokens.",
  70. "websiteUrl": "https://www.tii.ae/news/technology-innovation-institute-introduces-worlds-most-powerful-open-llm-falcon-180b",
  71. "preprompt": " ",
  72. "chatPromptTemplate": "System: {{preprompt}}\nUser:{{#each messages}}{{#ifUser}}{{content}}\nFalcon:{{/ifUser}}{{#ifAssistant}}{{content}}\nUser:{{/ifAssistant}}{{/each}}",
  73. "parameters": {
  74. "temperature": 0.1,
  75. "top_p": 0.95,
  76. "repetition_penalty": 1.2,
  77. "top_k": 50,
  78. "truncate": 1000,
  79. "max_new_tokens": 1024,
  80. "stop": ["User:"]
  81. },
  82. "promptExamples": [
  83. {
  84. "title": "Write an email from bullet list",
  85. "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
  86. }, {
  87. "title": "Code a snake game",
  88. "prompt": "Code a basic snake game in python, give explanations for each step."
  89. }, {
  90. "title": "Assist in a task",
  91. "prompt": "How do I make a delicious lemon cheesecake?"
  92. }
  93. ]
  94. },
  95. {
  96. "name": "mistralai/Mistral-7B-Instruct-v0.1",
  97. "displayName": "mistralai/Mistral-7B-Instruct-v0.1",
  98. "description": "Mistral 7B is a new Apache 2.0 model, released by Mistral AI that outperforms Llama2 13B in benchmarks.",
  99. "websiteUrl": "https://mistral.ai/news/announcing-mistral-7b/",
  100. "preprompt": "",
  101. "chatPromptTemplate" : "<s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}",
  102. "parameters": {
  103. "temperature": 0.1,
  104. "top_p": 0.95,
  105. "repetition_penalty": 1.2,
  106. "top_k": 50,
  107. "truncate": 1000,
  108. "max_new_tokens": 2048,
  109. "stop": ["</s>"]
  110. },
  111. "promptExamples": [
  112. {
  113. "title": "Write an email from bullet list",
  114. "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
  115. }, {
  116. "title": "Code a snake game",
  117. "prompt": "Code a basic snake game in python, give explanations for each step."
  118. }, {
  119. "title": "Assist in a task",
  120. "prompt": "How do I make a delicious lemon cheesecake?"
  121. }
  122. ]
  123. }
  124. ]`
  125. OLD_MODELS=`[{"name":"bigcode/starcoder"}, {"name":"OpenAssistant/oasst-sft-6-llama-30b-xor"}, {"name":"HuggingFaceH4/zephyr-7b-alpha"}]`
  126. TASK_MODEL='mistralai/Mistral-7B-Instruct-v0.1'
  127. APP_BASE="/chat"
  128. PUBLIC_ORIGIN=https://huggingface.co
  129. PUBLIC_SHARE_PREFIX=https://hf.co/chat
  130. PUBLIC_ANNOUNCEMENT_BANNERS=`[]`
  131. PUBLIC_APP_NAME=HuggingChat
  132. PUBLIC_APP_ASSETS=huggingchat
  133. PUBLIC_APP_COLOR=yellow
  134. PUBLIC_APP_DESCRIPTION="Making the community's best AI chat models available to everyone."
  135. PUBLIC_APP_DATA_SHARING=1
  136. PUBLIC_APP_DISCLAIMER=1
  137. RATE_LIMIT=16
  138. MESSAGES_BEFORE_LOGIN=5# how many messages a user can send in a conversation before having to login. set to 0 to force login right away
  139. PUBLIC_GOOGLE_ANALYTICS_ID=G-8Q63TH4CSL
  140. # Not part of the .env but set as other variables in the space
  141. # ADDRESS_HEADER=X-Forwarded-For
  142. # XFF_DEPTH=2
Tip!

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

Comments

Loading...