-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configmap and default generation params
- Loading branch information
1 parent
2254b79
commit 962dd4d
Showing
12 changed files
with
275 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
LAI_HF_HUB_ENABLE_HF_TRANSFER="1" | ||
LAI_REPO_ID="justinthelaw/Hermes-2-Pro-Mistral-7B-4bit-32g" | ||
LAI_REVISION="main" | ||
LAI_TENSOR_PARALLEL_SIZE=1 | ||
LAI_TRUST_REMOTE_CODE=True | ||
LAI_MODEL_SOURCE=".model/" | ||
LAI_MAX_CONTEXT_LENGTH=32768 | ||
LAI_STOP_TOKENS='["</s>"]' | ||
LAI_PROMPT_FORMAT_CHAT_SYSTEM="<|im_start|>system\n{}<|im_end|>\n" | ||
LAI_PROMPT_FORMAT_CHAT_USER="<|im_start|>user\n{}<|im_end|>\n" | ||
LAI_PROMPT_FORMAT_CHAT_ASSISTANT="<|im_start|>assistant\n{}<|im_end|>\n" | ||
LAI_PROMPT_FORMAT_DEFAULTS_TOP_P=1.0 | ||
LAI_PROMPT_FORMAT_DEFAULTS_TOP_K=0 | ||
LAI_ENFORCE_EAGER=False | ||
LAI_GPU_MEMORY_UTILIZATION=0.90 | ||
LAI_WORKER_USE_RAY=True | ||
LAI_ENGINE_USE_RAY=True | ||
LAI_QUANTIZATION="None" | ||
LFAI_HF_HUB_ENABLE_HF_TRANSFER="1" | ||
LFAI_REPO_ID="defenseunicotns/Hermes-2-Pro-Mistral-7B-4bit-32g" | ||
LFAI_REVISION="main" | ||
LFAI_TENSOR_PARALLEL_SIZE=1 | ||
LFAI_TRUST_REMOTE_CODE=True | ||
LFAI_MODEL_SOURCE=".model/" | ||
LFAI_MAX_CONTEXT_LENGTH=32768 | ||
LFAI_STOP_TOKENS='["</s>"]' | ||
LFAI_PROMPT_FORMAT_CHAT_SYSTEM="<|im_start|>system\n{}<|im_end|>\n" | ||
LFAI_PROMPT_FORMAT_CHAT_USER="<|im_start|>user\n{}<|im_end|>\n" | ||
LFAI_PROMPT_FORMAT_CHAT_ASSISTANT="<|im_start|>assistant\n{}<|im_end|>\n" | ||
LFAI_PROMPT_FORMAT_DEFAULTS_TOP_P=1.0 | ||
LFAI_PROMPT_FORMAT_DEFAULTS_TOP_K=0 | ||
LFAI_ENFORCE_EAGER=False | ||
LFAI_GPU_MEMORY_UTILIZATION=0.90 | ||
LFAI_WORKER_USE_RAY=True | ||
LFAI_ENGINE_USE_RAY=True | ||
LFAI_QUANTIZATION="None" |
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
37 changes: 37 additions & 0 deletions
37
packages/vllm/chart/templates/leapfrogai-sdk-configmap.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "{{ .Values.nameOverride }}-sdk-configmap" | ||
namespace: {{ .Release.Namespace | default "leapfrogai" }} | ||
data: | ||
config.yaml: | | ||
model: | ||
source: {{ .Values.leapfrogaiConfig.model.source }} | ||
max_context_length: {{ .Values.leapfrogaiConfig.maxContextLength }} | ||
stop_tokens: | ||
{{- $stopTokens := .Values.leapfrogaiConfig.stopTokens }} | ||
{{- range $stopToken := splitList ", " .Values.leapfrogaiConfig.stopTokens }} | ||
- {{ printf "%s" $stopToken }} | ||
{{- end }} | ||
prompt_format: | ||
{{- with .Values.leapfrogaiConfig.promptFormat.chat }} | ||
chat: | ||
{{- if .system }} | ||
system: {{ .system }} | ||
{{- end }} | ||
{{- if .assistant }} | ||
assistant: {{ .assistant }} | ||
{{- end }} | ||
{{- if .user }} | ||
user: {{ .user }} | ||
{{- end }} | ||
{{- if .function }} | ||
function: {{ .function }} | ||
{{- end }} | ||
{{- end }} | ||
defaults: | ||
temperature: {{ .Values.leapfrogaiConfig.defaults.temperature }} | ||
top_p: {{ .Values.leapfrogaiConfig.defaults.topP }} | ||
top_k: {{ .Values.leapfrogaiConfig.defaults.topK }} | ||
repetition_penalty: {{ .Values.leapfrogaiConfig.defaults.repetitionPenalty }} | ||
max_new_tokens: {{ .Values.leapfrogaiConfig.defaults.maxNewTokens }} |
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,13 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "{{ .Values.nameOverride }}-engine-configmap" | ||
namespace: {{ .Release.Namespace | default "leapfrogai" }} | ||
data: | ||
LFAI_TRUST_REMOTE_CODE: "{{ .Values.vllmConfig.trustRemoteCode }}" | ||
LFAI_TENSOR_PARALLEL_SIZE: "{{ .Values.vllmConfig.tensorParallelSize }}" | ||
LFAI_ENFORCE_EAGER: "{{ .Values.vllmConfig.enforceEager }}" | ||
LFAI_GPU_MEMORY_UTILIZATION: "{{ .Values.vllmConfig.gpuMemoryUtilization }}" | ||
LFAI_WORKER_USE_RAY: "{{ .Values.vllmConfig.workerUseRay }}" | ||
LFAI_ENGINE_USE_RAY: "{{ .Values.vllmConfig.engineUseRay }}" | ||
LFAI_QUANTIZATION: "{{ .Values.vllmConfig.quantization }}" |
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
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.