forked from rh-aiservices-bu/insurance-claim-processing
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Revert to Flan-T5 Remove CUDA from container update packages and switch to CPU torch update workbenches IS update deployment switch back to 1.3 update wb image * update conclusion
- Loading branch information
Showing
16 changed files
with
1,311 additions
and
1,354 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: llm-flant5 | ||
namespace: ic-shared-llm | ||
labels: | ||
app: llm-flant5 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: llm-flant5 | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: llm-flant5 | ||
spec: | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
affinity: {} | ||
terminationGracePeriodSeconds: 120 | ||
securityContext: {} | ||
containers: | ||
- resources: | ||
limits: | ||
cpu: '4' | ||
memory: 8Gi | ||
requests: | ||
cpu: '2' | ||
memory: 6Gi | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
scheme: HTTP | ||
timeoutSeconds: 5 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
terminationMessagePath: /dev/termination-log | ||
name: server | ||
livenessProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
scheme: HTTP | ||
timeoutSeconds: 8 | ||
periodSeconds: 100 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
env: | ||
- name: MODEL_ID | ||
value: google/flan-t5-large | ||
- name: MAX_INPUT_LENGTH | ||
value: '416' | ||
- name: MAX_TOTAL_TOKENS | ||
value: '512' | ||
- name: HUGGINGFACE_HUB_CACHE | ||
value: /models-cache | ||
- name: PORT | ||
value: '3000' | ||
- name: HOSTNAME | ||
value: '0.0.0.0' | ||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
runAsNonRoot: true | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
ports: | ||
- name: http | ||
containerPort: 3000 | ||
protocol: TCP | ||
imagePullPolicy: IfNotPresent | ||
startupProbe: | ||
httpGet: | ||
path: /health | ||
port: http | ||
scheme: HTTP | ||
timeoutSeconds: 1 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
failureThreshold: 24 | ||
initialDelaySeconds: 60 | ||
volumeMounts: | ||
- name: models-cache | ||
mountPath: /models-cache | ||
- name: shm | ||
mountPath: /dev/shm | ||
terminationMessagePolicy: File | ||
image: 'ghcr.io/huggingface/text-generation-inference:1.3' | ||
volumes: | ||
- name: models-cache | ||
persistentVolumeClaim: | ||
claimName: models-cache-hftgi | ||
- name: shm | ||
emptyDir: | ||
medium: Memory | ||
sizeLimit: 1Gi | ||
dnsPolicy: ClusterFirst | ||
strategy: | ||
type: Recreate | ||
revisionHistoryLimit: 10 | ||
progressDeadlineSeconds: 600 |
This file was deleted.
Oops, something went wrong.
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
8 changes: 4 additions & 4 deletions
8
bootstrap/ic-shared-llm/service-ollama.yaml → bootstrap/ic-shared-llm/service-hftgi.yaml
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: ollama | ||
name: llm-flant5 | ||
namespace: ic-shared-llm | ||
labels: | ||
app: ollama | ||
app: llm-flant5 | ||
spec: | ||
clusterIP: None | ||
ipFamilies: | ||
- IPv4 | ||
ports: | ||
- name: http | ||
protocol: TCP | ||
port: 11434 | ||
port: 3000 | ||
targetPort: http | ||
type: ClusterIP | ||
ipFamilyPolicy: SingleStack | ||
sessionAffinity: None | ||
selector: | ||
app: ollama | ||
app: llm-flant5 |
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
Oops, something went wrong.