Skip to content

Commit

Permalink
fix(models): fix issue for python to synth Jumpstart and HuggingFace …
Browse files Browse the repository at this point in the history
…models constructs (#218)
  • Loading branch information
krokoko authored Jan 26, 2024
1 parent 80231df commit be63a86
Show file tree
Hide file tree
Showing 11 changed files with 172 additions and 172 deletions.
4 changes: 2 additions & 2 deletions apidocs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
- [AdapterProps](interfaces/AdapterProps.md)
- [ContainerImageConfig](interfaces/ContainerImageConfig.md)
- [CustomSageMakerEndpointProps](interfaces/CustomSageMakerEndpointProps.md)
- [IHuggingFaceSageMakerEndpointProps](interfaces/IHuggingFaceSageMakerEndpointProps.md)
- [HuggingFaceSageMakerEndpointProps](interfaces/HuggingFaceSageMakerEndpointProps.md)
- [IInstanceAliase](interfaces/IInstanceAliase.md)
- [IInstanceValiant](interfaces/IInstanceValiant.md)
- [IJumpStartModelSpec](interfaces/IJumpStartModelSpec.md)
- [IJumpStartSageMakerEndpointProps](interfaces/IJumpStartSageMakerEndpointProps.md)
- [JumpStartSageMakerEndpointProps](interfaces/JumpStartSageMakerEndpointProps.md)
- [LangchainLayerProps](interfaces/LangchainLayerProps.md)
- [LangchainProps](interfaces/LangchainProps.md)
- [QaAppsyncOpensearchProps](interfaces/QaAppsyncOpensearchProps.md)
Expand Down
2 changes: 1 addition & 1 deletion apidocs/classes/HuggingFaceSageMakerEndpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The HuggingFaceSageMakerEndpoint class.
| :------ | :------ |
| `scope` | `Construct` |
| `id` | `string` |
| `props` | [`IHuggingFaceSageMakerEndpointProps`](../interfaces/IHuggingFaceSageMakerEndpointProps.md) |
| `props` | [`HuggingFaceSageMakerEndpointProps`](../interfaces/HuggingFaceSageMakerEndpointProps.md) |

#### Returns

Expand Down
2 changes: 1 addition & 1 deletion apidocs/classes/JumpStartSageMakerEndpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The JumpStartSageMakerEndpoint class.
| :------ | :------ |
| `scope` | `Construct` |
| `id` | `string` |
| `props` | [`IJumpStartSageMakerEndpointProps`](../interfaces/IJumpStartSageMakerEndpointProps.md) |
| `props` | [`JumpStartSageMakerEndpointProps`](../interfaces/JumpStartSageMakerEndpointProps.md) |

#### Returns

Expand Down
75 changes: 75 additions & 0 deletions apidocs/interfaces/HuggingFaceSageMakerEndpointProps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[@cdklabs/generative-ai-cdk-constructs](../README.md) / HuggingFaceSageMakerEndpointProps

# Interface: HuggingFaceSageMakerEndpointProps

## Table of contents

### Properties

- [container](HuggingFaceSageMakerEndpointProps.md#container)
- [endpointName](HuggingFaceSageMakerEndpointProps.md#endpointname)
- [environment](HuggingFaceSageMakerEndpointProps.md#environment)
- [instanceCount](HuggingFaceSageMakerEndpointProps.md#instancecount)
- [instanceType](HuggingFaceSageMakerEndpointProps.md#instancetype)
- [modelId](HuggingFaceSageMakerEndpointProps.md#modelid)
- [role](HuggingFaceSageMakerEndpointProps.md#role)
- [startupHealthCheckTimeoutInSeconds](HuggingFaceSageMakerEndpointProps.md#startuphealthchecktimeoutinseconds)
- [vpcConfig](HuggingFaceSageMakerEndpointProps.md#vpcconfig)

## Properties

### container

`Readonly` **container**: [`ContainerImage`](../classes/ContainerImage.md)

___

### endpointName

`Optional` `Readonly` **endpointName**: `string`

___

### environment

`Optional` `Readonly` **environment**: `Object`

#### Index signature

[key: `string`]: `string`

___

### instanceCount

`Optional` `Readonly` **instanceCount**: `number`

___

### instanceType

`Readonly` **instanceType**: [`SageMakerInstanceType`](../classes/SageMakerInstanceType.md)

___

### modelId

`Readonly` **modelId**: `string`

___

### role

`Optional` `Readonly` **role**: `Role`

___

### startupHealthCheckTimeoutInSeconds

`Optional` `Readonly` **startupHealthCheckTimeoutInSeconds**: `number`

___

### vpcConfig

`Optional` `Readonly` **vpcConfig**: `VpcConfigProperty`
75 changes: 0 additions & 75 deletions apidocs/interfaces/IHuggingFaceSageMakerEndpointProps.md

This file was deleted.

68 changes: 0 additions & 68 deletions apidocs/interfaces/IJumpStartSageMakerEndpointProps.md

This file was deleted.

68 changes: 68 additions & 0 deletions apidocs/interfaces/JumpStartSageMakerEndpointProps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[@cdklabs/generative-ai-cdk-constructs](../README.md) / JumpStartSageMakerEndpointProps

# Interface: JumpStartSageMakerEndpointProps

## Table of contents

### Properties

- [endpointName](JumpStartSageMakerEndpointProps.md#endpointname)
- [environment](JumpStartSageMakerEndpointProps.md#environment)
- [instanceCount](JumpStartSageMakerEndpointProps.md#instancecount)
- [instanceType](JumpStartSageMakerEndpointProps.md#instancetype)
- [model](JumpStartSageMakerEndpointProps.md#model)
- [role](JumpStartSageMakerEndpointProps.md#role)
- [startupHealthCheckTimeoutInSeconds](JumpStartSageMakerEndpointProps.md#startuphealthchecktimeoutinseconds)
- [vpcConfig](JumpStartSageMakerEndpointProps.md#vpcconfig)

## Properties

### endpointName

`Optional` `Readonly` **endpointName**: `string`

___

### environment

`Optional` `Readonly` **environment**: `Object`

#### Index signature

[key: `string`]: `string`

___

### instanceCount

`Optional` `Readonly` **instanceCount**: `number`

___

### instanceType

`Optional` `Readonly` **instanceType**: [`SageMakerInstanceType`](../classes/SageMakerInstanceType.md)

___

### model

`Readonly` **model**: [`JumpStartModel`](../classes/JumpStartModel.md)

___

### role

`Optional` `Readonly` **role**: `Role`

___

### startupHealthCheckTimeoutInSeconds

`Optional` `Readonly` **startupHealthCheckTimeoutInSeconds**: `number`

___

### vpcConfig

`Optional` `Readonly` **vpcConfig**: `VpcConfigProperty`
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ new HuggingFaceSageMakerEndpoint(this, 'Mistral', {
## Initializer

```
new HuggingFaceSageMakerEndpoint(scope: Construct, id: string, props: IHuggingFaceSageMakerEndpointProps)
new HuggingFaceSageMakerEndpoint(scope: Construct, id: string, props: HuggingFaceSageMakerEndpointProps)
```

Parameters

- scope [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html)
- id string
- props IHuggingFaceSageMakerEndpointProps
- props HuggingFaceSageMakerEndpointProps

## Pattern Construct Props

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ new JumpStartSageMakerEndpoint(this, 'LLAMA2', {
## Initializer

```
new JumpStartSageMakerEndpoint(scope: Construct, id: string, props: IJumpStartSageMakerEndpointProps)
new JumpStartSageMakerEndpoint(scope: Construct, id: string, props: JumpStartSageMakerEndpointProps)
```

Parameters

- scope [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html)
- id string
- props IJumpStartSageMakerEndpointProps
- props JumpStartSageMakerEndpointProps

## Pattern Construct Props

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ import { ContainerImage } from './container-image';
import { SageMakerEndpointBase } from './sagemaker-endpoint-base';
import { SageMakerInstanceType } from './sagemaker-instance-type';

export interface IHuggingFaceSageMakerEndpointProps {
modelId: string;
container: ContainerImage;
endpointName?: string;
instanceType: SageMakerInstanceType;
instanceCount?: number;
role?: iam.Role;
environment?: { [key: string]: string };
startupHealthCheckTimeoutInSeconds?: number;
vpcConfig?: sagemaker.CfnModel.VpcConfigProperty | undefined;
export interface HuggingFaceSageMakerEndpointProps {
readonly modelId: string;
readonly container: ContainerImage;
readonly endpointName?: string;
readonly instanceType: SageMakerInstanceType;
readonly instanceCount?: number;
readonly role?: iam.Role;
readonly environment?: { [key: string]: string };
readonly startupHealthCheckTimeoutInSeconds?: number;
readonly vpcConfig?: sagemaker.CfnModel.VpcConfigProperty | undefined;
}

/**
Expand All @@ -48,7 +48,7 @@ export class HuggingFaceSageMakerEndpoint extends SageMakerEndpointBase implemen
private readonly startupHealthCheckTimeoutInSeconds: number;
private readonly environment?: { [key: string]: string };

constructor(scope: Construct, id: string, props: IHuggingFaceSageMakerEndpointProps) {
constructor(scope: Construct, id: string, props: HuggingFaceSageMakerEndpointProps) {
super(scope, id);

this.modelId = props.modelId;
Expand Down
Loading

0 comments on commit be63a86

Please sign in to comment.