Elffuss BraidHub

kikocis/continue public

main · 1.7 KiBRawPermalink
1---
2title: "Amazon SageMaker"
3description: "Configure Amazon SageMaker with Continue to use deployed LLM endpoints for both chat and embedding models, supporting LMI and HuggingFace TEI deployments with AWS credentials"
4---
5
6SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding)
7
8Here is an example Sagemaker configuration setup:
9
10<Tabs>
11 <Tab title="YAML">
12 ```yaml title="config.yaml"
13 models:
14 - name: deepseek-6.7b-instruct
15 provider: sagemaker
16 model: lmi-model-deepseek-coder-xxxxxxx
17 region: us-west-2
18 roles:
19 - chat
20 - name: mxbai-embed
21 provider: sagemaker
22 model: mxbai-embed-large-v1-endpoint
23 roles:
24 - embed
25 ```
26 </Tab>
27 <Tab title="JSON">
28 ```json title="config.json"
29 {
30 "models": [
31 {
32 "title": "deepseek-6.7b-instruct",
33 "provider": "sagemaker",
34 "model": "lmi-model-deepseek-coder-xxxxxxx",
35 "region": "us-west-2"
36 }
37 ],
38 "embeddingsProvider": {
39 "provider": "sagemaker",
40 "model": "mxbai-embed-large-v1-endpoint"
41 }
42 }
43 ```
44 </Tab>
45</Tabs>
46
47The value in model should be the SageMaker endpoint name you deployed.
48
49Authentication will be through temporary or long-term credentials in
50~/.aws/credentials under a profile called "sagemaker".
51
52```title="~/.aws/credentials
53[sagemaker]
54aws_access_key_id = abcdefg
55aws_secret_access_key = hijklmno
56aws_session_token = pqrstuvwxyz # Optional: means short term creds.
57```