-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2884a7
commit 7eb3da7
Showing
22 changed files
with
293 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/galileo-cdk/src/ai/llms/framework/sagemaker/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. | ||
PDX-License-Identifier: Apache-2.0 */ | ||
import * as sagemaker from 'aws-cdk-lib/aws-sagemaker'; | ||
import { Construct } from 'constructs'; | ||
import { BaseLLM, BaseLLMProps } from '../base'; | ||
|
||
export interface SageMakerLLMProps extends BaseLLMProps { | ||
readonly containerDefinition: sagemaker.CfnModel.ContainerDefinitionProperty; | ||
} | ||
|
||
export class SageMakerLLM extends BaseLLM { | ||
public readonly model: sagemaker.CfnModel; | ||
|
||
constructor(scope: Construct, id: string, props: SageMakerLLMProps) { | ||
super(scope, id, props); | ||
|
||
this.model = new sagemaker.CfnModel(this, 'Model', { | ||
executionRoleArn: this.role.roleArn, | ||
enableNetworkIsolation: true, | ||
primaryContainer: props.containerDefinition, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. | ||
PDX-License-Identifier: Apache-2.0 */ | ||
export * from './llama2'; |
Oops, something went wrong.