import React from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; import { FileText } from 'lucide-react'; import { ConfigComponentProps } from '../types'; const LoggingConfig: React.FC = ({ config, updateConfig }) => { return (
Logging & Checkpointing
updateConfig("log_freq", parseInt(e.target.value)) } className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig("save_freq", parseInt(e.target.value)) } className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig("eval_freq", parseInt(e.target.value)) } className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig("output_dir", e.target.value)} className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig("job_name", e.target.value || undefined) } className="bg-slate-900 border-slate-600 text-white rounded-lg" />
updateConfig("save_checkpoint", checked) } />
updateConfig("resume", checked) } />
); }; export default LoggingConfig;