victor HF staff commited on
Commit
fb2b35f
1 Parent(s): 229803c

max tokens

Browse files
src/lib/components/Playground/Playground.svelte CHANGED
@@ -9,9 +9,7 @@
9
  content: string;
10
  };
11
 
12
- const startMessages: Message[] = [
13
- { role: 'user', content: 'Complete the equation 1+1= ,just the answe' }
14
- ];
15
  const compatibleModels: string[] = [
16
  'meta-llama/Meta-Llama-3-8B-Instruct',
17
  'mistralai/Mistral-7B-Instruct-v0.2'
@@ -22,7 +20,7 @@
22
  let systemMessage: Message = { role: 'system', content: '' };
23
  let messages: Message[] = startMessages;
24
  let temperature = 0.5;
25
- let maxTokens = 32000;
26
  let streaming = true;
27
 
28
  let loading = false;
 
9
  content: string;
10
  };
11
 
12
+ const startMessages: Message[] = [{ role: 'user', content: '' }];
 
 
13
  const compatibleModels: string[] = [
14
  'meta-llama/Meta-Llama-3-8B-Instruct',
15
  'mistralai/Mistral-7B-Instruct-v0.2'
 
20
  let systemMessage: Message = { role: 'system', content: '' };
21
  let messages: Message[] = startMessages;
22
  let temperature = 0.5;
23
+ let maxTokens = 2048;
24
  let streaming = true;
25
 
26
  let loading = false;
src/lib/components/Playground/PlaygroundOptions.svelte CHANGED
@@ -2,7 +2,7 @@
2
  export let compatibleModels: string[] = [];
3
  export let currentModel = compatibleModels[0];
4
  export let temperature = 0.5;
5
- export let maxTokens = 32000;
6
  export let streaming = true;
7
  </script>
8
 
@@ -57,7 +57,7 @@
57
  class="w-20 rounded border px-1 py-0.5 text-right text-sm"
58
  bind:value={maxTokens}
59
  min="0"
60
- max="32000"
61
  step="512"
62
  />
63
  </div>
 
2
  export let compatibleModels: string[] = [];
3
  export let currentModel = compatibleModels[0];
4
  export let temperature = 0.5;
5
+ export let maxTokens = 2048;
6
  export let streaming = true;
7
  </script>
8
 
 
57
  class="w-20 rounded border px-1 py-0.5 text-right text-sm"
58
  bind:value={maxTokens}
59
  min="0"
60
+ max="2048"
61
  step="512"
62
  />
63
  </div>