Nymbo commited on
Commit
224d260
·
verified ·
1 Parent(s): a5e3e9f

Update src/lib/components/Playground/Playground.svelte

Browse files
src/lib/components/Playground/Playground.svelte CHANGED
@@ -1,40 +1,45 @@
1
  <script lang="ts">
 
 
2
  import PlaygroundCode from './PlaygroundCode.svelte';
3
- import {
4
- createHfInference,
5
- prepareRequestMessages,
6
- handleStreamingResponse,
7
- handleNonStreamingResponse
8
- } from './playgroundUtils';
9
  import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
10
  import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
11
  import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';
12
  import PlaygroundModelSelector from './PlaygroundModelSelector.svelte';
13
- import { onDestroy } from 'svelte';
14
 
15
  const compatibleModels: string[] = [
16
- '01-ai/Yi-1.5-34B-Chat',
17
- 'codellama/CodeLlama-34b-Instruct-hf',
18
- 'CohereForAI/c4ai-command-r-plus',
19
- 'google/gemma-1.1-2b-it',
20
- 'google/gemma-1.1-7b-it',
21
- 'google/gemma-2-27b-it',
22
 
 
 
 
 
 
23
  'HuggingFaceH4/zephyr-7b-beta',
24
- 'HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1',
25
  'HuggingFaceM4/idefics-9b-instruct',
26
-
 
 
 
27
  'meta-llama/Llama-2-13b-chat-hf',
28
- 'meta-llama/Llama-2-70b-chat-hf',
29
  'meta-llama/Llama-2-7b-chat-hf',
30
- 'meta-llama/Meta-Llama-3-70B-Instruct',
31
- 'meta-llama/Meta-Llama-3-8B-Instruct',
32
- 'microsoft/Phi-3-mini-4k-instruct',
33
- 'mistralai/Mistral-7B-Instruct-v0.1',
 
 
 
34
  'mistralai/Mistral-7B-Instruct-v0.2',
35
- 'mistralai/Mistral-7B-Instruct-v0.3',
36
- 'mistralai/Mixtral-8x7B-Instruct-v0.1',
 
 
37
  'tiiuae/falcon-7b-instruct'
 
38
  ];
39
 
40
  const startMessages: Message[] = [{ role: 'user', content: '' }];
 
1
  <script lang="ts">
2
+ import { HfInference } from '@huggingface/inference';
3
+
4
  import PlaygroundCode from './PlaygroundCode.svelte';
 
 
 
 
 
 
5
  import PlaygroundMessage from '$lib/components/Playground/PlaygroundMessage.svelte';
6
  import PlaygroundOptions from '$lib/components/Playground/PlaygroundOptions.svelte';
7
  import PlaygroundTokenModal from './PlaygroundTokenModal.svelte';
8
  import PlaygroundModelSelector from './PlaygroundModelSelector.svelte';
 
9
 
10
  const compatibleModels: string[] = [
11
+
12
+ 'CohereForAI/c4ai-command-r-plus',
13
+
14
+ 'microsoft/Phi-3-mini-4k-instruct',
 
 
15
 
16
+ 'google/gemma-2-27b-it',
17
+ 'google/gemma-1.1-7b-it',
18
+ 'google/gemma-1.1-2b-it',
19
+
20
+ 'HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1',
21
  'HuggingFaceH4/zephyr-7b-beta',
 
22
  'HuggingFaceM4/idefics-9b-instruct',
23
+
24
+ 'meta-llama/Meta-Llama-3-70B-Instruct',
25
+ 'meta-llama/Meta-Llama-3-8B-Instruct',
26
+ 'meta-llama/Llama-2-70b-chat-hf',
27
  'meta-llama/Llama-2-13b-chat-hf',
 
28
  'meta-llama/Llama-2-7b-chat-hf',
29
+
30
+ 'codellama/CodeLlama-34b-Instruct-hf',
31
+
32
+ `NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO`,
33
+
34
+ 'mistralai/Mixtral-8x7B-Instruct-v0.1',
35
+ 'mistralai/Mistral-7B-Instruct-v0.3',
36
  'mistralai/Mistral-7B-Instruct-v0.2',
37
+ 'mistralai/Mistral-7B-Instruct-v0.1',
38
+
39
+ '01-ai/Yi-1.5-34B-Chat',
40
+
41
  'tiiuae/falcon-7b-instruct'
42
+
43
  ];
44
 
45
  const startMessages: Message[] = [{ role: 'user', content: '' }];