Daniel Kantor commited on
Commit
9475a6a
·
1 Parent(s): 9ca2b96

simplify model form

Browse files
backend/app/services/models.py CHANGED
@@ -593,16 +593,16 @@ class ModelService(HuggingFaceService):
593
  "model": model_data["model_id"],
594
  "base_model": model_data["base_model"],
595
  "revision": model_info.sha,
596
- "precision": model_data["precision"],
597
  "params": model_size,
598
  "architectures": architectures,
599
- "weight_type": model_data["weight_type"],
600
  "status": "PENDING",
601
  "submitted_time": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
602
- "model_type": model_data["model_type"],
603
  "job_id": -1,
604
  "job_start_time": None,
605
- "use_chat_template": model_data["use_chat_template"],
606
  "sender": user_id,
607
  }
608
 
@@ -622,7 +622,9 @@ class ModelService(HuggingFaceService):
622
  else ""
623
  )
624
  model_path = model_data["model_id"].split("/")[-1]
625
- relative_path = f"{org_or_user}/{model_path}_eval_request_False_{model_data['precision']}_{model_data['weight_type']}.json"
 
 
626
 
627
  # Create a temporary file with the request
628
  with tempfile.NamedTemporaryFile(
 
593
  "model": model_data["model_id"],
594
  "base_model": model_data["base_model"],
595
  "revision": model_info.sha,
596
+ # "precision": model_data["precision"],
597
  "params": model_size,
598
  "architectures": architectures,
599
+ # "weight_type": model_data["weight_type"],
600
  "status": "PENDING",
601
  "submitted_time": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
602
+ # "model_type": model_data["model_type"],
603
  "job_id": -1,
604
  "job_start_time": None,
605
+ # "use_chat_template": model_data["use_chat_template"],
606
  "sender": user_id,
607
  }
608
 
 
622
  else ""
623
  )
624
  model_path = model_data["model_id"].split("/")[-1]
625
+ relative_path = (
626
+ f"{org_or_user}/{model_path}_{model_data['revision']}_eval_request.json"
627
+ )
628
 
629
  # Create a temporary file with the request
630
  with tempfile.NamedTemporaryFile(
frontend/src/pages/AddModelPage/components/ModelSubmissionForm/ModelSubmissionForm.js CHANGED
@@ -437,7 +437,7 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
437
  </Grid>
438
 
439
  {/* Model Configuration */}
440
- <Grid item xs={12}>
441
  <Stack direction="row" spacing={1} alignItems="center">
442
  <Typography variant="h6">Model Configuration</Typography>
443
  </Stack>
@@ -465,9 +465,10 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
465
  ))}
466
  </Select>
467
  </FormControl>
468
- </Grid>
469
 
470
- <Grid item xs={12} sm={6}>
 
471
  <Stack
472
  direction="row"
473
  spacing={2}
@@ -486,8 +487,9 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
486
  />
487
  <InfoIconWithTooltip tooltip={HELP_TEXTS.chatTemplate} />
488
  </Stack>
489
- </Grid>
490
 
 
491
  <Grid item xs={12} sm={6}>
492
  <FormControl fullWidth>
493
  <InputLabel>Precision</InputLabel>
@@ -556,6 +558,7 @@ function ModelSubmissionForm({ user, isAuthenticated }) {
556
  />
557
  </Grid>
558
  )}
 
559
 
560
  {/* Submit Button */}
561
  <Grid item xs={12}>
 
437
  </Grid>
438
 
439
  {/* Model Configuration */}
440
+ {/*<Grid item xs={12}>
441
  <Stack direction="row" spacing={1} alignItems="center">
442
  <Typography variant="h6">Model Configuration</Typography>
443
  </Stack>
 
465
  ))}
466
  </Select>
467
  </FormControl>
468
+ </Grid>*/}
469
 
470
+
471
+ {/*<Grid item xs={12} sm={6}>
472
  <Stack
473
  direction="row"
474
  spacing={2}
 
487
  />
488
  <InfoIconWithTooltip tooltip={HELP_TEXTS.chatTemplate} />
489
  </Stack>
490
+ </Grid>*/}
491
 
492
+ {/*
493
  <Grid item xs={12} sm={6}>
494
  <FormControl fullWidth>
495
  <InputLabel>Precision</InputLabel>
 
558
  />
559
  </Grid>
560
  )}
561
+ */}
562
 
563
  {/* Submit Button */}
564
  <Grid item xs={12}>