Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions docs/en/DEPLOY_OPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ This solution supports the following text generation models:
"apac.anthropic.claude-3-5-sonnet-20240620-v1:0",
"apac.anthropic.claude-3-5-sonnet-20241022-v2:0",
"us.deepseek.r1-v1:0",
"qwen.qwen3-235b-a22b-2507-v1:0",
"qwen.qwen3-32b-v1:0",
"qwen.qwen3-coder-480b-a35b-v1:0",
"qwen.qwen3-coder-30b-a3b-v1:0",
"us.writer.palmyra-x5-v1:0",
"us.writer.palmyra-x4-v1:0",
"amazon.titan-text-premier-v1:0",
Expand Down
4 changes: 4 additions & 0 deletions docs/ja/DEPLOY_OPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,10 @@ const envs: Record<string, Partial<StackInput>> = {
"apac.anthropic.claude-3-5-sonnet-20240620-v1:0",
"apac.anthropic.claude-3-5-sonnet-20241022-v2:0",
"us.deepseek.r1-v1:0",
"qwen.qwen3-235b-a22b-2507-v1:0",
"qwen.qwen3-32b-v1:0",
"qwen.qwen3-coder-480b-a35b-v1:0",
"qwen.qwen3-coder-30b-a3b-v1:0",
"us.writer.palmyra-x5-v1:0",
"us.writer.palmyra-x4-v1:0",
"amazon.titan-text-premier-v1:0",
Expand Down
4 changes: 4 additions & 0 deletions docs/ko/DEPLOY_OPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,10 @@ const envs: Record<string, Partial<StackInput>> = {
"apac.anthropic.claude-3-5-sonnet-20240620-v1:0",
"apac.anthropic.claude-3-5-sonnet-20241022-v2:0",
"us.deepseek.r1-v1:0",
"qwen.qwen3-235b-a22b-2507-v1:0",
"qwen.qwen3-32b-v1:0",
"qwen.qwen3-coder-480b-a35b-v1:0",
"qwen.qwen3-coder-30b-a3b-v1:0",
"us.writer.palmyra-x5-v1:0",
"us.writer.palmyra-x4-v1:0",
"amazon.titan-text-premier-v1:0",
Expand Down
40 changes: 40 additions & 0 deletions packages/cdk/lambda/utils/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ const DEEPSEEK_DEFAULT_PARAMS: ConverseInferenceParams = {
},
};

const QWEN_DEFAULT_PARAMS: ConverseInferenceParams = {
inferenceConfig: {
maxTokens: 32768,
temperature: 0.7,
topP: 0.9,
},
};

const PALMYRA_DEFAULT_PARAMS: ConverseInferenceParams = {
inferenceConfig: {
maxTokens: 8192,
Expand Down Expand Up @@ -1491,6 +1499,38 @@ export const BEDROCK_TEXT_GEN_MODELS: {
extractConverseOutput: extractConverseOutput,
extractConverseStreamOutput: extractConverseStreamOutput,
},
'qwen.qwen3-235b-a22b-2507-v1:0': {
defaultParams: QWEN_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
createConverseCommandInput: createConverseCommandInput,
createConverseStreamCommandInput: createConverseStreamCommandInput,
extractConverseOutput: extractConverseOutput,
extractConverseStreamOutput: extractConverseStreamOutput,
},
'qwen.qwen3-32b-v1:0': {
defaultParams: QWEN_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
createConverseCommandInput: createConverseCommandInput,
createConverseStreamCommandInput: createConverseStreamCommandInput,
extractConverseOutput: extractConverseOutput,
extractConverseStreamOutput: extractConverseStreamOutput,
},
'qwen.qwen3-coder-480b-a35b-v1:0': {
defaultParams: QWEN_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
createConverseCommandInput: createConverseCommandInput,
createConverseStreamCommandInput: createConverseStreamCommandInput,
extractConverseOutput: extractConverseOutput,
extractConverseStreamOutput: extractConverseStreamOutput,
},
'qwen.qwen3-coder-30b-a3b-v1:0': {
defaultParams: QWEN_DEFAULT_PARAMS,
usecaseParams: USECASE_DEFAULT_PARAMS,
createConverseCommandInput: createConverseCommandInput,
createConverseStreamCommandInput: createConverseStreamCommandInput,
extractConverseOutput: extractConverseOutput,
extractConverseStreamOutput: extractConverseStreamOutput,
},
// Although Palmyra supports system context, the model seems work best without it.
'us.writer.palmyra-x4-v1:0': {
defaultParams: PALMYRA_DEFAULT_PARAMS,
Expand Down
17 changes: 17 additions & 0 deletions packages/common/src/application/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,23 @@ export const modelMetadata: Record<string, ModelMetadata> = {
flags: MODEL_FEATURE.TEXT_DOC_REASONING,
displayName: 'DeepSeek-R1',
},
// Qwen
'qwen.qwen3-235b-a22b-2507-v1:0': {
flags: MODEL_FEATURE.TEXT_ONLY,
displayName: 'Qwen3 235B A22B 2507',
},
'qwen.qwen3-32b-v1:0': {
flags: MODEL_FEATURE.TEXT_ONLY,
displayName: 'Qwen3 32B',
},
'qwen.qwen3-coder-480b-a35b-v1:0': {
flags: MODEL_FEATURE.TEXT_ONLY,
displayName: 'Qwen3-Coder 480B A35B Instruct',
},
'qwen.qwen3-coder-30b-a3b-v1:0': {
flags: MODEL_FEATURE.TEXT_ONLY,
displayName: 'Qwen3-Coder 30B A3B Instruct',
},
// Writer
'us.writer.palmyra-x4-v1:0': {
flags: MODEL_FEATURE.TEXT_DOC,
Expand Down