Skip to content

Commit

Permalink
feat: add vicuna 7b & 13b from LMSYS
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Sep 18, 2023
1 parent 3aa0ec8 commit 70ea7a7
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 1 deletion.
Binary file added public/bots/vicuna-13b-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/bots/vicuna-33b-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/bots/vicuna-7b-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import Llama270bBot from "./lmsys/Llama270bBot";
import Falcon180bBot from "./huggingface/Falcon180bBot";
import ChatGLM6bBot from "./lmsys/ChatGLM6bBot";
import CodeLlamaBot from "./lmsys/CodeLlamaBot";
import Vicuna7bBot from "./lmsys/Vicuna7bBot";
import Vicuna13bBot from "./lmsys/Vicuna13bBot";

const all = [
Qihoo360AIBrainBot.getInstance(),
Expand Down Expand Up @@ -88,6 +90,8 @@ const all = [
SageBot.getInstance(),
SkyWorkBot.getInstance(),
SparkBot.getInstance(),
Vicuna7bBot.getInstance(),
Vicuna13bBot.getInstance(),
VicunaBot.getInstance(),
YouChatBot.getInstance(),
];
Expand Down Expand Up @@ -138,6 +142,8 @@ export const botTags = {
bots.getBotByClassName("GradioAppBot"),
bots.getBotByClassName("AlpacaBot"),
bots.getBotByClassName("VicunaBot"),
bots.getBotByClassName("Vicuna7bBot"),
bots.getBotByClassName("Vicuna13bBot"),
bots.getBotByClassName("CharacterAIBot"),
bots.getBotByClassName("ClaudeAIBot"),
bots.getBotByClassName("PiBot"),
Expand All @@ -163,6 +169,8 @@ export const botTags = {
bots.getBotByClassName("MOSSBot"),
bots.getBotByClassName("OpenAssistantBot"),
bots.getBotByClassName("VicunaBot"),
bots.getBotByClassName("Vicuna7bBot"),
bots.getBotByClassName("Vicuna13bBot"),
bots.getBotByClassName("Falcon180bBot"),
bots.getBotByClassName("ChatGLM6bBot"),
bots.getBotByClassName("CodeLlamaBot"),
Expand Down
12 changes: 12 additions & 0 deletions src/bots/lmsys/Vicuna13bBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import LMSYSBot from "./LMSYSBot";

export default class Vicuna13bBot extends LMSYSBot {
static _brandId = "lmsys"; // Brand id of the bot, should be unique. Used in i18n.
static _className = "Vicuna13bBot"; // Class name of the bot
static _logoFilename = "vicuna-13b-logo.png"; // Place it in public/bots/
static _model = "vicuna-13b";

constructor() {
super();
}
}
12 changes: 12 additions & 0 deletions src/bots/lmsys/Vicuna7bBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import LMSYSBot from "./LMSYSBot";

export default class Vicuna7bBot extends LMSYSBot {
static _brandId = "lmsys"; // Brand id of the bot, should be unique. Used in i18n.
static _className = "Vicuna7bBot"; // Class name of the bot
static _logoFilename = "vicuna-7b-logo.png"; // Place it in public/bots/
static _model = "vicuna-7b";

constructor() {
super();
}
}
2 changes: 1 addition & 1 deletion src/bots/lmsys/VicunaBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LMSYSBot from "./LMSYSBot";
export default class VicunaBot extends LMSYSBot {
static _brandId = "lmsys"; // Brand id of the bot, should be unique. Used in i18n.
static _className = "VicunaBot"; // Class name of the bot
static _logoFilename = "vicuna-logo.jpeg"; // Place it in public/bots/
static _logoFilename = "vicuna-33b-logo.png"; // Place it in public/bots/
static _model = "vicuna-33b";

constructor() {
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
},
"lmsys": {
"name": "LMSYS",
"vicuna-7b": "vicuna-7b",
"vicuna-13b": "vicuna-13b",
"vicuna-33b": "vicuna-33b",
"chatglm-6b": "chatglm-6b",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
},
"lmsys": {
"name": "LMSYS",
"vicuna-7b": "vicuna-7b",
"vicuna-13b": "vicuna-13b",
"vicuna-33b": "vicuna-33b",
"chatglm-6b": "chatglm-6b",
Expand Down

0 comments on commit 70ea7a7

Please sign in to comment.