Skip to content

Commit

Permalink
add Groq LLaMA3 70B support llama3-70b-8192 (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
faraday authored Apr 22, 2024
1 parent 38eeadf commit d5a2d28
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/chat-setting-limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ export const CHAT_SETTING_LIMITS: Record<LLMID, ChatSettingLimits> = {
MAX_TOKEN_OUTPUT_LENGTH: 4096,
MAX_CONTEXT_LENGTH: 4096
},
"llama3-70b-8192": {
MIN_TEMPERATURE: 0.0,
MAX_TEMPERATURE: 1.0,
MAX_TOKEN_OUTPUT_LENGTH: 8192,
MAX_CONTEXT_LENGTH: 8192
},
"mixtral-8x7b-32768": {
MIN_TEMPERATURE: 0.0,
MAX_TEMPERATURE: 1.0,
Expand Down
17 changes: 16 additions & 1 deletion lib/models/llm/groq-llm-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ const LLaMA2_70B: LLM = {
}
}

const LLaMA3_70B: LLM = {
modelId: "llama3-70b-8192",
modelName: "LLaMA3-70b-chat",
provider: "groq",
hostedId: "llama3-70b-4096",
platformLink: GROQ_PLATORM_LINK,
imageInput: false,
pricing: {
currency: "USD",
unit: "1M tokens",
inputCost: 0.78,
outputCost: 0.9
}
}

const MIXTRAL_8X7B: LLM = {
modelId: "mixtral-8x7b-32768",
modelName: "Mixtral-8x7b-Instruct-v0.1",
Expand All @@ -32,4 +47,4 @@ const MIXTRAL_8X7B: LLM = {
}
}

export const GROQ_LLM_LIST: LLM[] = [LLaMA2_70B, MIXTRAL_8X7B]
export const GROQ_LLM_LIST: LLM[] = [LLaMA2_70B, LLaMA3_70B, MIXTRAL_8X7B]
1 change: 1 addition & 0 deletions types/llms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type MistralLLMID =

export type GroqLLMID =
| "llama2-70b-4096" // LLaMA2-70b
| "llama3-70b-8192" // LLaMA3-70b
| "mixtral-8x7b-32768" // Mixtral-8x7b

// Perplexity Models (UPDATED 1/31/24)
Expand Down

1 comment on commit d5a2d28

@chikosan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you!

Please sign in to comment.