lhoestq HF staff commited on
Commit
82dc3c2
1 Parent(s): bb0eeb1

last touches

Browse files
Files changed (2) hide show
  1. generate.py +2 -2
  2. gradio_app.py +2 -2
generate.py CHANGED
@@ -22,8 +22,8 @@ logger = logging.getLogger(__name__)
22
 
23
 
24
  logger.warning("Loading model...")
25
- # model_id = "google/gemma-2b-it"
26
- model_id = "Qwen/Qwen1.5-0.5B-Chat"
27
  if torch.backends.mps.is_available():
28
  device = "mps"
29
  model = models.transformers(model_id, device=device)
 
22
 
23
 
24
  logger.warning("Loading model...")
25
+ model_id = "google/gemma-2b-it"
26
+ # model_id = "Qwen/Qwen1.5-0.5B-Chat"
27
  if torch.backends.mps.is_available():
28
  device = "mps"
29
  model = models.transformers(model_id, device=device)
gradio_app.py CHANGED
@@ -6,7 +6,7 @@ import io
6
  import pandas as pd
7
  import spaces
8
 
9
- from generate import stream_jsonl_file
10
 
11
  MAX_SIZE = 20
12
  DEFAULT_SEED = 42
@@ -58,7 +58,7 @@ def stream_more_output(query: str):
58
 
59
  title = "LLM DataGen"
60
  description = (
61
- "Generate and stream synthetic dataset files in `{JSON Lines}` format\n\n"
62
  "Disclaimer: LLM data generation is an area of active research with known problems such as biased generation and incorrect information."
63
  )
64
  examples = [
 
6
  import pandas as pd
7
  import spaces
8
 
9
+ from generate import model_id, stream_jsonl_file
10
 
11
  MAX_SIZE = 20
12
  DEFAULT_SEED = 42
 
58
 
59
  title = "LLM DataGen"
60
  description = (
61
+ f"Generate and stream synthetic dataset files in `{{JSON Lines}}` format (currently using [{model_id}](https://huggingface.co/{model_id}))\n\n"
62
  "Disclaimer: LLM data generation is an area of active research with known problems such as biased generation and incorrect information."
63
  )
64
  examples = [