joaogante HF staff commited on
Commit
9ad031d
1 Parent(s): a92ceab
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -2,12 +2,17 @@
2
  Holds the gradio app itself
3
  """
4
 
 
5
  import gradio as gr
6
 
7
  from src.train_workflow import run, DEFAULT_TRAINING_ARGS
8
  from src.calibration_datasets import CalibrationDataset
9
 
10
 
 
 
 
 
11
  DESCRIPTION = """
12
  The steps to create [medusa](https://sites.google.com/view/medusa-llm) heads are the following:
13
 
 
2
  Holds the gradio app itself
3
  """
4
 
5
+ import os
6
  import gradio as gr
7
 
8
  from src.train_workflow import run, DEFAULT_TRAINING_ARGS
9
  from src.calibration_datasets import CalibrationDataset
10
 
11
 
12
+ # TODO: install FA2 in a better way, e.g docker img
13
+ os.system("pip install flash-attn --no-build-isolation")
14
+
15
+
16
  DESCRIPTION = """
17
  The steps to create [medusa](https://sites.google.com/view/medusa-llm) heads are the following:
18
 
requirements.txt CHANGED
@@ -1,2 +1 @@
1
  medusa-llm[train]
2
- flash-attn --no-build-isolation
 
1
  medusa-llm[train]