Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
add client-side file size validation before upload
Roland Tannousc998227fec6d
diff --git a/studio/frontend/src/features/studio/sections/dataset-section.tsx b/studio/frontend/src/features/studio/sections/dataset-section.tsxindex 154999ac5b1..b81dd058f65 100644--- a/studio/frontend/src/features/studio/sections/dataset-section.tsx+++ b/studio/frontend/src/features/studio/sections/dataset-section.tsx@@ -357,6 +357,14 @@ export function DatasetSection() {event.target.value = "";if (!file) return;+ const MAX_SIZE_BYTES = 512 * 1024 * 1024;+ if (file.size > MAX_SIZE_BYTES) {+ toast.error("File too large", {+ description: "Maximum upload size is 512 MB.",+ });+ return;+ }+setIsUploading(true);try {const contentBase64 = await fileToBase64Payload(file);