joaogante HF staff commited on
Commit
d56736b
β€’
1 Parent(s): fecd746

clone data

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -9,13 +9,15 @@ from huggingface_hub import HfApi
9
  # Clone the medusa repo locally
10
  print("Cloning the medusa repo locally...")
11
  Repo.clone_from("https://github.com/FasterDecoding/Medusa.git", "medusa")
 
 
12
  print("Done")
13
 
14
 
15
  def create_medusa_heads(model_id: str):
16
  training_args = [
17
  "--model_name_or_path", model_id,
18
- "--data_path", "ShareGPT_Vicuna_unfiltered/ShareGPT_V4.3_unfiltered_cleaned_split.json",
19
  "--bf16", "True",
20
  "--output_dir", "medusa_heads",
21
  "--num_train_epochs", "1",
@@ -86,6 +88,7 @@ def run(model_id: str) -> str:
86
  Yay! Medusa heads were successfully created and uploaded to, {repo_id}
87
  """
88
  except Exception as e:
 
89
  return f"""
90
  ### Error 😒😒😒
91
 
 
9
  # Clone the medusa repo locally
10
  print("Cloning the medusa repo locally...")
11
  Repo.clone_from("https://github.com/FasterDecoding/Medusa.git", "medusa")
12
+ print("Cloning the Vicuna data locally...")
13
+ Repo.clone_from("https://huggingface.co/datasets/Aeala/ShareGPT_Vicuna_unfiltered", "data")
14
  print("Done")
15
 
16
 
17
  def create_medusa_heads(model_id: str):
18
  training_args = [
19
  "--model_name_or_path", model_id,
20
+ "--data_path", "data/ShareGPT_Vicuna_unfiltered/ShareGPT_V4.3_unfiltered_cleaned_split.json",
21
  "--bf16", "True",
22
  "--output_dir", "medusa_heads",
23
  "--num_train_epochs", "1",
 
88
  Yay! Medusa heads were successfully created and uploaded to, {repo_id}
89
  """
90
  except Exception as e:
91
+ print("Error ❌\n", e)
92
  return f"""
93
  ### Error 😒😒😒
94