Skip to content

Commit

Permalink
Merge branch 'dev_v3' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
suluyana committed Dec 3, 2024
2 parents 93f3f22 + e95544f commit 7cca9b6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,21 @@ resources:
role: ${vars.role}
functionName: ${vars.name}-model-download-func
description: initialize model into nas storage
handler: index.handler
handler: not-used
timeout: 86400
memorySize: 16384
cpu: 8
diskSize: 10240
instanceType: e1
instanceConcurrency: 1
runtime: python3.9
code: ./model_download
runtime: custom-container
internetAccess: true
vpcConfig: ${resources.model_cache.output.vpcConfig}
nasConfig: ${resources.model_cache.output.nasConfig}
customContainerConfig:
image: registry.${vars.region}.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-py310-torch2.3.0-1.16.0-fc
command: ["/bin/sh", "-c", "wget https://modelscope.oss-cn-beijing.aliyuncs.com/swingdeploy/download.tar; tar xvf download.tar; /bin/bash model_download/download.sh"]
port: 9001
environmentVariables:
MODEL_ID: ${vars.modelID}
MODEL_VERSION: ${vars.modelRevision}
Expand Down Expand Up @@ -130,15 +133,15 @@ resources:
{{ if instanceType != 'c1' && instanceType != 'e1' }}gpuConfig:
gpuMemorySize: ${vars.gpuMemorySize}
gpuType: ${vars.instanceType}{{ else }}instanceType: ${vars.instanceType}{{ /if }}
instanceConcurrency: 4
instanceConcurrency: 5
runtime: custom-container
initializer: 'true'
initializationTimeout: 300
internetAccess: true
vpcConfig: ${resources.model_cache.output.vpcConfig}
nasConfig: ${resources.model_cache.output.nasConfig}
customContainerConfig:
image: {{ if imageTag == 'ubuntu22.04-cuda12.1.0-py310-torch2.3.0-tf2.16.1-1.16.0-fc' || imageTag == 'ubuntu22.04-py310-torch2.3.0-1.16.0-fc' || imageTag == 'ubuntu22.04-cuda12.1.0-py310-torch2.3.0-tf2.16.1-1.16.0based-1.18.1-fc' || imageTag == 'fc-deploy-common-v17.3.3'}}registry.${vars.region}.aliyuncs.com/modelscope-repo/modelscope:${vars.version}{{ else }}modelscope-registry.${vars.region}.cr.aliyuncs.com/modelscope-repo/modelscope:${vars.version}{{/if}}
image: registry.${vars.region}.aliyuncs.com/modelscope-repo/modelscope:${vars.version}
command: ["/bin/sh", "-c", "wget https://modelscope.oss-cn-beijing.aliyuncs.com/swingdeploy/deploy.tar; tar xvf deploy.tar; /bin/bash script/run_${vars.modelBackend}.sh"]
port: 9000
environmentVariables:
Expand Down

0 comments on commit 7cca9b6

Please sign in to comment.