Skip to content

Commit d5a2d28

Browse files
authored
add Groq LLaMA3 70B support llama3-70b-8192 (#1685)
1 parent 38eeadf commit d5a2d28

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

lib/chat-setting-limits.ts

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ export const CHAT_SETTING_LIMITS: Record<LLMID, ChatSettingLimits> = {
8787
MAX_TOKEN_OUTPUT_LENGTH: 4096,
8888
MAX_CONTEXT_LENGTH: 4096
8989
},
90+
"llama3-70b-8192": {
91+
MIN_TEMPERATURE: 0.0,
92+
MAX_TEMPERATURE: 1.0,
93+
MAX_TOKEN_OUTPUT_LENGTH: 8192,
94+
MAX_CONTEXT_LENGTH: 8192
95+
},
9096
"mixtral-8x7b-32768": {
9197
MIN_TEMPERATURE: 0.0,
9298
MAX_TEMPERATURE: 1.0,

lib/models/llm/groq-llm-list.ts

+16-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ const LLaMA2_70B: LLM = {
1717
}
1818
}
1919

20+
const LLaMA3_70B: LLM = {
21+
modelId: "llama3-70b-8192",
22+
modelName: "LLaMA3-70b-chat",
23+
provider: "groq",
24+
hostedId: "llama3-70b-4096",
25+
platformLink: GROQ_PLATORM_LINK,
26+
imageInput: false,
27+
pricing: {
28+
currency: "USD",
29+
unit: "1M tokens",
30+
inputCost: 0.78,
31+
outputCost: 0.9
32+
}
33+
}
34+
2035
const MIXTRAL_8X7B: LLM = {
2136
modelId: "mixtral-8x7b-32768",
2237
modelName: "Mixtral-8x7b-Instruct-v0.1",
@@ -32,4 +47,4 @@ const MIXTRAL_8X7B: LLM = {
3247
}
3348
}
3449

35-
export const GROQ_LLM_LIST: LLM[] = [LLaMA2_70B, MIXTRAL_8X7B]
50+
export const GROQ_LLM_LIST: LLM[] = [LLaMA2_70B, LLaMA3_70B, MIXTRAL_8X7B]

types/llms.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type MistralLLMID =
3737

3838
export type GroqLLMID =
3939
| "llama2-70b-4096" // LLaMA2-70b
40+
| "llama3-70b-8192" // LLaMA3-70b
4041
| "mixtral-8x7b-32768" // Mixtral-8x7b
4142

4243
// Perplexity Models (UPDATED 1/31/24)

0 commit comments

Comments
 (0)