make workspace mount independent from a user name
This commit is contained in:
parent
e10c73cb69
commit
d656d46ca8
|
|
@ -52,8 +52,8 @@
|
||||||
"]\n",
|
"]\n",
|
||||||
"input_texts = queries + documents\n",
|
"input_texts = queries + documents\n",
|
||||||
"\n",
|
"\n",
|
||||||
"tokenizer = AutoTokenizer.from_pretrained('/tmp/models-cache/Qwen/Qwen3-Embedding-0.6B', padding_side='left')\n",
|
"tokenizer = AutoTokenizer.from_pretrained('Qwen/Qwen3-Embedding-0.6B', padding_side='left')\n",
|
||||||
"model = AutoModel.from_pretrained('/tmp/models-cache/Qwen/Qwen3-Embedding-0.6B')\n",
|
"model = AutoModel.from_pretrained('Qwen/Qwen3-Embedding-0.6B')\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# We recommend enabling flash_attention_2 for better acceleration and memory saving.\n",
|
"# We recommend enabling flash_attention_2 for better acceleration and memory saving.\n",
|
||||||
"# model = AutoModel.from_pretrained('Qwen/Qwen3-Embedding-0.6B', attn_implementation=\"flash_attention_2\", torch_dtype=torch.float16).cuda()\n",
|
"# model = AutoModel.from_pretrained('Qwen/Qwen3-Embedding-0.6B', attn_implementation=\"flash_attention_2\", torch_dtype=torch.float16).cuda()\n",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
jupyterhub:
|
jupyterhub:
|
||||||
nameOverride: "jupyterhub"
|
nameOverride: "jupyterhub"
|
||||||
# This value has to be null in order apply release name on this chart's resources.
|
# This value has to be null in order to apply release name on this chart's resources.
|
||||||
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/b4b51301ac886511c643cc5d428b15ff38006bee/jupyterhub/values.yaml#L1
|
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/b4b51301ac886511c643cc5d428b15ff38006bee/jupyterhub/values.yaml#L1
|
||||||
fullnameOverride:
|
fullnameOverride:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
jupyterhub:
|
jupyterhub:
|
||||||
nameOverride: "jupyterhub"
|
nameOverride: "jupyterhub"
|
||||||
# This value has to be null in order apply release name on this chart's resources.
|
# This value has to be null in order to apply release name on this chart's resources.
|
||||||
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/b4b51301ac886511c643cc5d428b15ff38006bee/jupyterhub/values.yaml#L1
|
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/b4b51301ac886511c643cc5d428b15ff38006bee/jupyterhub/values.yaml#L1
|
||||||
fullnameOverride:
|
fullnameOverride:
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ jupyterhub:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: home
|
- name: home
|
||||||
mountPath: /home/jovyan
|
mountPath: /home/jovyan
|
||||||
subPath: admin
|
subPath: jupyterhub_workspace
|
||||||
|
|
||||||
- name: model-initializer
|
- name: model-initializer
|
||||||
image: jupyterhub/k8s-singleuser-sample:4.2.0
|
image: jupyterhub/k8s-singleuser-sample:4.2.0
|
||||||
|
|
@ -49,7 +49,7 @@ jupyterhub:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: home
|
- name: home
|
||||||
mountPath: /home/jovyan
|
mountPath: /home/jovyan
|
||||||
subPath: admin
|
subPath: jupyterhub_workspace
|
||||||
- name: "download-models-py"
|
- name: "download-models-py"
|
||||||
mountPath: /tmp/download_models.py
|
mountPath: /tmp/download_models.py
|
||||||
subPath: download_models.py
|
subPath: download_models.py
|
||||||
|
|
@ -66,7 +66,7 @@ jupyterhub:
|
||||||
type: static
|
type: static
|
||||||
static:
|
static:
|
||||||
pvcName: "ai-starter-kit-models-cache-pvc"
|
pvcName: "ai-starter-kit-models-cache-pvc"
|
||||||
subPath: "{username}"
|
subPath: "jupyterhub_workspace"
|
||||||
capacity: 20Gi
|
capacity: 20Gi
|
||||||
homeMountPath: /home/jovyan
|
homeMountPath: /home/jovyan
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
jupyterhub:
|
jupyterhub:
|
||||||
nameOverride: "jupyterhub"
|
nameOverride: "jupyterhub"
|
||||||
# This value has to be null in order apply release name on this chart's resources.
|
# This value has to be null in order to apply release name on this chart's resources.
|
||||||
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/b4b51301ac886511c643cc5d428b15ff38006bee/jupyterhub/values.yaml#L1
|
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/b4b51301ac886511c643cc5d428b15ff38006bee/jupyterhub/values.yaml#L1
|
||||||
fullnameOverride:
|
fullnameOverride:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue