Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
55edfdd
1
Parent(s):
597ecba
Update to LoRA Frenzi
Browse files
ui/src/app/dashboard/page.tsx
CHANGED
|
@@ -21,8 +21,8 @@ export default function Dashboard() {
|
|
| 21 |
<MainContent>
|
| 22 |
<div className="mb-6">
|
| 23 |
<img
|
| 24 |
-
src="https://
|
| 25 |
-
alt="
|
| 26 |
className="w-full rounded-lg border border-gray-800"
|
| 27 |
/>
|
| 28 |
</div>
|
|
@@ -64,24 +64,16 @@ export default function Dashboard() {
|
|
| 64 |
<HFLoginButton size="md" />
|
| 65 |
<div className="flex flex-col gap-2 text-sm text-gray-300 max-w-sm">
|
| 66 |
<p>
|
| 67 |
-
|
| 68 |
-
<a
|
| 69 |
-
href="https://bfl-kontext-dev.devpost.com"
|
| 70 |
-
target="_blank"
|
| 71 |
-
rel="noopener noreferrer"
|
| 72 |
-
className="text-blue-400 underline"
|
| 73 |
-
>
|
| 74 |
-
hackathon here
|
| 75 |
-
</a>, and please join this{' '}
|
| 76 |
<a
|
| 77 |
href="https://huggingface.co/organizations/lora-training-frenzi/share/kEyyVNQXBPWqmARdwHFVdIiFqqONHZPOtz"
|
| 78 |
target="_blank"
|
| 79 |
rel="noopener noreferrer"
|
| 80 |
className="text-blue-400 underline"
|
| 81 |
>
|
| 82 |
-
organization
|
| 83 |
</a>{' '}
|
| 84 |
-
|
| 85 |
</p>
|
| 86 |
<img
|
| 87 |
src="https://huggingface.co/spaces/multimodalart/ai-toolkit/resolve/main/add_org_to_oauth.png"
|
|
|
|
| 21 |
<MainContent>
|
| 22 |
<div className="mb-6">
|
| 23 |
<img
|
| 24 |
+
src="https://huggingface.co/spaces/multimodalart/ai-toolkit/resolve/main/lora_frenzi.png"
|
| 25 |
+
alt="LoRA Frenzi event banner"
|
| 26 |
className="w-full rounded-lg border border-gray-800"
|
| 27 |
/>
|
| 28 |
</div>
|
|
|
|
| 64 |
<HFLoginButton size="md" />
|
| 65 |
<div className="flex flex-col gap-2 text-sm text-gray-300 max-w-sm">
|
| 66 |
<p>
|
| 67 |
+
Planning to join LoRA Frenzi? Make sure your training runs are 5,000 steps or fewer and join the{' '}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
<a
|
| 69 |
href="https://huggingface.co/organizations/lora-training-frenzi/share/kEyyVNQXBPWqmARdwHFVdIiFqqONHZPOtz"
|
| 70 |
target="_blank"
|
| 71 |
rel="noopener noreferrer"
|
| 72 |
className="text-blue-400 underline"
|
| 73 |
>
|
| 74 |
+
LoRA Frenzi organization
|
| 75 |
</a>{' '}
|
| 76 |
+
before authorizing the <code className="bg-gray-800 px-1 rounded">lorafrenzi</code> organization when logging in.
|
| 77 |
</p>
|
| 78 |
<img
|
| 79 |
src="https://huggingface.co/spaces/multimodalart/ai-toolkit/resolve/main/add_org_to_oauth.png"
|
ui/src/app/jobs/new/SimpleJob.tsx
CHANGED
|
@@ -125,11 +125,14 @@ export default function SimpleJob({
|
|
| 125 |
return newQuantizationOptions;
|
| 126 |
}, [modelArch]);
|
| 127 |
|
| 128 |
-
const
|
| 129 |
try {
|
| 130 |
-
const
|
| 131 |
-
const
|
| 132 |
-
|
|
|
|
|
|
|
|
|
|
| 133 |
} catch (error) {
|
| 134 |
return false;
|
| 135 |
}
|
|
@@ -966,7 +969,7 @@ export default function SimpleJob({
|
|
| 966 |
<div className="mt-8">
|
| 967 |
<HFJobsWorkflow
|
| 968 |
jobConfig={jobConfig}
|
| 969 |
-
hackathonEligible={
|
| 970 |
onComplete={(jobId, localJobId) => {
|
| 971 |
console.log('HF Job submitted:', jobId, 'Local job ID:', localJobId);
|
| 972 |
if (onHFJobComplete) {
|
|
|
|
| 125 |
return newQuantizationOptions;
|
| 126 |
}, [modelArch]);
|
| 127 |
|
| 128 |
+
const isLoRAFrenziEligible = useMemo(() => {
|
| 129 |
try {
|
| 130 |
+
const steps = jobConfig?.config?.process?.[0]?.train?.steps;
|
| 131 |
+
const parsedSteps = typeof steps === 'string' ? Number(steps) : steps;
|
| 132 |
+
if (!Number.isFinite(parsedSteps)) {
|
| 133 |
+
return false;
|
| 134 |
+
}
|
| 135 |
+
return parsedSteps > 0 && parsedSteps <= 5000;
|
| 136 |
} catch (error) {
|
| 137 |
return false;
|
| 138 |
}
|
|
|
|
| 969 |
<div className="mt-8">
|
| 970 |
<HFJobsWorkflow
|
| 971 |
jobConfig={jobConfig}
|
| 972 |
+
hackathonEligible={isLoRAFrenziEligible}
|
| 973 |
onComplete={(jobId, localJobId) => {
|
| 974 |
console.log('HF Job submitted:', jobId, 'Local job ID:', localJobId);
|
| 975 |
if (onHFJobComplete) {
|
ui/src/components/HFJobsWorkflow.tsx
CHANGED
|
@@ -475,7 +475,7 @@ export default function HFJobsWorkflow({ jobConfig, onComplete, hackathonEligibl
|
|
| 475 |
<Checkbox
|
| 476 |
label={
|
| 477 |
<span>
|
| 478 |
-
Participating in
|
| 479 |
<a
|
| 480 |
href="https://huggingface.co/organizations/lora-training-frenzi/share/kEyyVNQXBPWqmARdwHFVdIiFqqONHZPOtz"
|
| 481 |
target="_blank"
|
|
|
|
| 475 |
<Checkbox
|
| 476 |
label={
|
| 477 |
<span>
|
| 478 |
+
Participating in LoRA Frenzi? If so, keep your training at 5,000 steps or fewer and join this
|
| 479 |
<a
|
| 480 |
href="https://huggingface.co/organizations/lora-training-frenzi/share/kEyyVNQXBPWqmARdwHFVdIiFqqONHZPOtz"
|
| 481 |
target="_blank"
|