Update app.py
Browse files84 unmodified lines858687888990912 unmodified lines949596979899100101102118 unmodified lines221222223224225226227115 unmodified lines34334434534634734834984 unmodified linesckpt_name = f"checkpoint-{step}"ckpt_path = os.path.join(args.output_dir, ckpt_name)job.add_log(f"System: Full State Snapshot saved ({ckpt_name})")def _upload_bg():try:2 unmodified linespath_in_repo=".",repo_id=self.repo_id,token=self.hf_token,commit_message=f"Live Full Checkpoint {step}")job.add_log(f"Cloud: Synced Full Checkpoint {step} to Root")except:pass118 unmodified linesoptim="adamw_torch_fused" if torch.cuda.is_available() else "adamw_torch",logging_steps=1,save_strategy="steps",save_steps=max(5, int(int(train_steps)/5)),save_total_limit=1,report_to="none",fp16=True if torch.cuda.is_available() else False,115 unmodified linespassreturn gr.update(selected="launch_tab"), ""with gr.Blocks(title="Nucleus Enterprise") as demo:with gr.Column():gr.Markdown("# ⚛️ NUCLEUS ENTERPRISE")gr.Markdown("Autonomous LLM Foundry | V7.0 Scratch Edition")84 unmodified lines858687888990912 unmodified lines949596979899100101102118 unmodified lines221222223224225226227115 unmodified lines34334434534634734834984 unmodified linesckpt_name = f"checkpoint-{step}"ckpt_path = os.path.join(args.output_dir, ckpt_name)job.add_log(f"System: 100-Step Snapshot saved ({ckpt_name})")def _upload_bg():try:2 unmodified linespath_in_repo=".",repo_id=self.repo_id,token=self.hf_token,commit_message=f"Live Checkpoint Step {step}")job.add_log(f"Cloud: Synced Checkpoint {step} to Root")except:pass118 unmodified linesoptim="adamw_torch_fused" if torch.cuda.is_available() else "adamw_torch",logging_steps=1,save_strategy="steps",save_steps=100,save_total_limit=1,report_to="none",fp16=True if torch.cuda.is_available() else False,115 unmodified linespassreturn gr.update(selected="launch_tab"), ""with gr.Blocks(title="Nucleus Enterprise", theme=gr.themes.Base()) as demo:with gr.Column():gr.Markdown("# ⚛️ NUCLEUS ENTERPRISE")gr.Markdown("Autonomous LLM Foundry | V7.0 Scratch Edition")
app.py+5-5