julien-c HF staff commited on
Commit
7f827cf
1 Parent(s): 1a14c61

inference params from @OlivierDehaene 's Space (#34)

Browse files

* light theme by default to be consistent with hf.co...

* params from

@OlivierDehaene

's Space

* small todo

src/app.html CHANGED
@@ -10,6 +10,8 @@
10
  <div style="display: contents">%sveltekit.body%</div>
11
  </body>
12
  <script>
13
- localStorage.theme !== 'light' && document.documentElement.classList.add('dark');
 
 
14
  </script>
15
  </html>
 
10
  <div style="display: contents">%sveltekit.body%</div>
11
  </body>
12
  <script>
13
+ if (localStorage.theme === 'dark') {
14
+ document.documentElement.classList.add('dark');
15
+ }
16
  </script>
17
  </html>
src/lib/components/chat/ChatIntroduction.svelte CHANGED
@@ -25,6 +25,7 @@
25
  <div
26
  class="flex items-center gap-4 px-3 py-2 bg-gray-100 rounded-xl text-sm text-gray-600 dark:text-gray-300 dark:bg-gray-800"
27
  >
 
28
  <a href="https://huggingface.co/OpenAssistant/llama_30b_oasst_latcyr_1000" target="_blank"
29
  >Model page</a
30
  >
 
25
  <div
26
  class="flex items-center gap-4 px-3 py-2 bg-gray-100 rounded-xl text-sm text-gray-600 dark:text-gray-300 dark:bg-gray-800"
27
  >
28
+ <!-- need to change link to a public model before launch -->
29
  <a href="https://huggingface.co/OpenAssistant/llama_30b_oasst_latcyr_1000" target="_blank"
30
  >Model page</a
31
  >
src/routes/conversation/[id]/+page.svelte CHANGED
@@ -21,11 +21,15 @@
21
  inputs,
22
  parameters: {
23
  // Taken from https://huggingface.co/spaces/huggingface/open-assistant-private-testing/blob/main/app.py#L54
 
 
 
 
24
  // @ts-ignore
25
- stop: ['<|endoftext|>'],
26
- max_new_tokens: 1024,
27
  truncate: 1024,
28
- typical_p: 0.2
 
 
29
  }
30
  },
31
  {
@@ -33,9 +37,6 @@
33
  }
34
  );
35
 
36
- // Regex to check if the text finishes by "<" but is not a piece of code like "`<img>`"
37
- const endOfTextRegex = /(?<!`)<(?!`)/;
38
-
39
  for await (const data of response) {
40
  if (!data) break;
41
 
 
21
  inputs,
22
  parameters: {
23
  // Taken from https://huggingface.co/spaces/huggingface/open-assistant-private-testing/blob/main/app.py#L54
24
+ temperature: 0.9,
25
+ top_p: 0.95,
26
+ repetition_penalty: 1.2,
27
+ top_k: 50,
28
  // @ts-ignore
 
 
29
  truncate: 1024,
30
+ watermark: false,
31
+ max_new_tokens: 1024,
32
+ stop: ['<|endoftext|>'],
33
  }
34
  },
35
  {
 
37
  }
38
  );
39
 
 
 
 
40
  for await (const data of response) {
41
  if (!data) break;
42