Fine-tune LLMs on sensitive data using JupyterLab inside a TEE. Upload your dataset through the browser, run training cells, download your model.
phala auth login
phala deploy -n my-training -c docker-compose.yaml \
--instance-type h200.small \
-e HF_TOKEN=hf_xxxxx \
-e JUPYTER_PASSWORD=your-secretOpen https://<endpoint>:8888 and log in with your password.
graph LR
You -->|upload data| Jupyter
subgraph TEE[Confidential VM]
Jupyter[JupyterLab]
Jupyter --> GPU[Confidential GPU]
end
Jupyter -->|download model| You
- Use the pre-installed notebooks in
/workspace/unsloth-notebooks/or uploadfinetune.ipynbfrom this repo - Upload your training data (JSONL with
instructionandresponsefields) - Run the cells to train
- Download the output folder with your fine-tuned weights
Your data and model weights stay encrypted in GPU memory throughout training.
phala cvms delete my-training --force- Confidential AI Guide
- Unsloth for the training library