julien-c HF staff commited on
Commit
714cc60
1 Parent(s): 252a449

Correct model name and model id (#92)

Browse files

* Update model name & model id

* Facultative commit

cc @gary149

.env CHANGED
@@ -7,9 +7,9 @@ HF_TOKEN=#your huggingface token here
7
  SHARE_BASE_URL=#https://hf.co/chat
8
  COOKIE_NAME=hf-chat
9
 
10
- PUBLIC_MODEL_ENDPOINT=https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-1-pythia-12b
11
- PUBLIC_MODEL_NAME=OpenAssistant/oasst-sft-1-pythia-12b
12
- PUBLIC_MODEL_TAGLINE=This is the first iteration English supervised-fine-tuning (SFT) model of the <a class="underline" href="https://github.com/LAION-AI/Open-Assistant">Open-Assistant</a> project. It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations of assistant conversations collected through the <a class="underline" href="https://open-assistant.io/">https://open-assistant.io/</a> human feedback web app before March 7, 2023.
13
  PUBLIC_DISABLE_INTRO_TILES=false
14
  PUBLIC_USER_MESSAGE_TOKEN=<|prompter|>
15
  PUBLIC_ASSISTANT_MESSAGE_TOKEN=<|assistant|>
 
7
  SHARE_BASE_URL=#https://hf.co/chat
8
  COOKIE_NAME=hf-chat
9
 
10
+ PUBLIC_MODEL_ENDPOINT=https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-6-llama-30b
11
+ PUBLIC_MODEL_NAME=OpenAssistant/oasst-sft-6-llama-30b # public facing link
12
+ PUBLIC_MODEL_ID=OpenAssistant/oasst-sft-6-llama-30b-xor # used to link to model page
13
  PUBLIC_DISABLE_INTRO_TILES=false
14
  PUBLIC_USER_MESSAGE_TOKEN=<|prompter|>
15
  PUBLIC_ASSISTANT_MESSAGE_TOKEN=<|assistant|>
src/lib/components/chat/ChatIntroduction.svelte CHANGED
@@ -1,5 +1,9 @@
1
  <script lang="ts">
2
- import { PUBLIC_DISABLE_INTRO_TILES, PUBLIC_MODEL_NAME } from "$env/static/public";
 
 
 
 
3
 
4
  import Logo from "$lib/components/icons/Logo.svelte";
5
  import CarbonArrowUpRight from "~icons/carbon/arrow-up-right";
@@ -36,7 +40,7 @@
36
  class="flex items-center gap-5 px-3 py-2 bg-gray-100 rounded-xl text-sm text-gray-600 dark:text-gray-300 dark:bg-gray-800"
37
  >
38
  <a
39
- href="https://huggingface.co/{PUBLIC_MODEL_NAME}"
40
  target="_blank"
41
  rel="noreferrer"
42
  class="flex items-center hover:underline"
 
1
  <script lang="ts">
2
+ import {
3
+ PUBLIC_DISABLE_INTRO_TILES,
4
+ PUBLIC_MODEL_ID,
5
+ PUBLIC_MODEL_NAME,
6
+ } from "$env/static/public";
7
 
8
  import Logo from "$lib/components/icons/Logo.svelte";
9
  import CarbonArrowUpRight from "~icons/carbon/arrow-up-right";
 
40
  class="flex items-center gap-5 px-3 py-2 bg-gray-100 rounded-xl text-sm text-gray-600 dark:text-gray-300 dark:bg-gray-800"
41
  >
42
  <a
43
+ href="https://huggingface.co/{PUBLIC_MODEL_ID}"
44
  target="_blank"
45
  rel="noreferrer"
46
  class="flex items-center hover:underline"
src/lib/components/chat/ChatWindow.svelte CHANGED
@@ -7,7 +7,7 @@
7
  import ChatMessages from "./ChatMessages.svelte";
8
  import ChatInput from "./ChatInput.svelte";
9
  import CarbonExport from "~icons/carbon/export";
10
- import { PUBLIC_MODEL_NAME } from "$env/static/public";
11
 
12
  export let messages: Message[] = [];
13
  export let disabled: boolean = false;
@@ -45,8 +45,13 @@
45
  </form>
46
  <div class="flex text-xs text-gray-400/90 mt-2 justify-between self-stretch px-1 max-sm:gap-2">
47
  <p>
48
- Model: {PUBLIC_MODEL_NAME} <span class="max-sm:hidden">·</span><br class="sm:hidden" /> Generated
49
- content may be inaccurate or false.
 
 
 
 
 
50
  </p>
51
  {#if messages.length}
52
  <button
 
7
  import ChatMessages from "./ChatMessages.svelte";
8
  import ChatInput from "./ChatInput.svelte";
9
  import CarbonExport from "~icons/carbon/export";
10
+ import { PUBLIC_MODEL_ID, PUBLIC_MODEL_NAME } from "$env/static/public";
11
 
12
  export let messages: Message[] = [];
13
  export let disabled: boolean = false;
 
45
  </form>
46
  <div class="flex text-xs text-gray-400/90 mt-2 justify-between self-stretch px-1 max-sm:gap-2">
47
  <p>
48
+ Model: <a
49
+ href="https://huggingface.co/{PUBLIC_MODEL_ID}"
50
+ target="_blank"
51
+ rel="noreferrer"
52
+ class="hover:underline">{PUBLIC_MODEL_NAME}</a
53
+ > <span class="max-sm:hidden">·</span><br class="sm:hidden" /> Generated content may be inaccurate
54
+ or false.
55
  </p>
56
  {#if messages.length}
57
  <button