Skip to content

Commit

Permalink
Add config to enable ollama based workflow in a11y hub
Browse files Browse the repository at this point in the history
  • Loading branch information
balajialg committed Nov 26, 2024
1 parent 285d4cb commit 7581eba
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions deployments/a11y/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,22 @@ jupyterhub:
c.QtPDFExporter.enabled = False
c.QtPNGExporter.enabled = False
c.WebPDFExporter.enabled = False
# proxy ollama
proxy-ollama:
# https://jupyter-server-proxy.readthedocs.io/en/latest/server-process.html#specifying-config-via-traitlets
mountPath: /etc/jupyter/jupyter_server_config.py
stringData: |
c.ServerProxy.servers = {
"ollama": {
"port": 11434
}
}
extraEnv:
# Unset NotebookApp from hub/values. Necessary for recent lab versions.
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
OLLAMA_ORIGINS: "*"
OLLAMA_HOST: "0.0.0.0:11434"
OLLAMA_DEBUG: "1"
nodeSelector:
hub.jupyter.org/pool-name: small-courses-pool
storage:
Expand All @@ -83,5 +96,5 @@ jupyterhub:
subPath: _shared
readOnly: true
memory:
guarantee: 3G
limit: 3G
guarantee: 5G
limit: 5G

0 comments on commit 7581eba

Please sign in to comment.