Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llama2 の削除 #710

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/DEPLOY_OPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,6 @@ PromptFlow チャットユースケースでは、作成済みの Prompt Flow
"anthropic.claude-v2:1",
"anthropic.claude-v2",
"anthropic.claude-instant-v1",
"meta.llama2-70b-chat-v1",
"meta.llama2-13b-chat-v1",
"mistral.mixtral-8x7b-instruct-v0:1",
"mistral.mistral-7b-instruct-v0:2"
```
Expand Down
22 changes: 3 additions & 19 deletions packages/cdk/lambda/utils/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const defaultImageGenerationModel: Model = {

// Prompt Templates

const LLAMA2_PROMPT: PromptTemplate = {
const LLAMA_PROMPT: PromptTemplate = {
prefix: '<s>[INST] ',
suffix: ' [/INST]',
join: '',
Expand Down Expand Up @@ -828,22 +828,6 @@ export const BEDROCK_TEXT_GEN_MODELS: {
extractConverseOutputText: extractConverseOutputText,
extractConverseStreamOutputText: extractConverseStreamOutputText,
},
'meta.llama2-13b-chat-v1': {
defaultParams: LLAMA_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
createConverseCommandInput: createConverseCommandInput,
createConverseStreamCommandInput: createConverseStreamCommandInput,
extractConverseOutputText: extractConverseOutputText,
extractConverseStreamOutputText: extractConverseStreamOutputText,
},
'meta.llama2-70b-chat-v1': {
defaultParams: LLAMA_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
createConverseCommandInput: createConverseCommandInput,
createConverseStreamCommandInput: createConverseStreamCommandInput,
extractConverseOutputText: extractConverseOutputText,
extractConverseStreamOutputText: extractConverseStreamOutputText,
},
'mistral.mistral-7b-instruct-v0:2': {
defaultParams: MISTRAL_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
Expand Down Expand Up @@ -941,8 +925,8 @@ export const BEDROCK_IMAGE_GEN_MODELS: {
};

export const getSageMakerModelTemplate = (model: string): PromptTemplate => {
if (model.includes('llama-2')) {
return LLAMA2_PROMPT;
if (model.includes('llama')) {
return LLAMA_PROMPT;
} else if (model.includes('bilingual-rinna')) {
return BILINGUAL_RINNA_PROMPT;
} else if (model.includes('rinna')) {
Expand Down
2 changes: 0 additions & 2 deletions packages/cdk/lib/construct/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ export class Api extends Construct {
'us.meta.llama3-2-3b-instruct-v1:0',
'us.meta.llama3-2-11b-instruct-v1:0',
'us.meta.llama3-2-90b-instruct-v1:0',
'meta.llama2-13b-chat-v1',
'meta.llama2-70b-chat-v1',
'mistral.mistral-7b-instruct-v0:2',
'mistral.mixtral-8x7b-instruct-v0:1',
'mistral.mistral-small-2402-v1:0',
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/text.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export type ClaudeMessageParams = {
top_p?: number;
};

// Llama2
// Llama
// https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-meta.html
export type LlamaParams = {
prompt?: string;
Expand Down Expand Up @@ -166,7 +166,7 @@ export type BedrockResponse = {
};
// Titan
outputText: string;
// Llama2
// Llama
generation: string;
// Mistral
outputs: {
Expand Down
Loading