barttee commited on
Commit
7e79396
·
verified ·
1 Parent(s): aa9d721

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -18,9 +18,9 @@ app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
18
 
19
  # Predefined tokenizer models with aliases
20
  TOKENIZER_MODELS = {
21
- 'llama4': {
22
- 'name': 'meta-llama/Llama-4-Scout-17B-16E-Instruct', #same as meta-llama/Llama-4-Maverick-17B-128E-Instruct or meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 or meta-llama/Llama-4-Scout-17B-16E etc
23
- 'alias': 'Llama 4'
24
  },
25
  'mistral-small': {
26
  'name': 'mistralai/Mistral-Small-3.1-24B-Instruct-2503',
@@ -30,6 +30,10 @@ TOKENIZER_MODELS = {
30
  'name': 'google/gemma-3-27b-it',
31
  'alias': 'Gemma 3 27B'
32
  },
 
 
 
 
33
  'deepseek-r1': {
34
  'name': 'deepseek-ai/DeepSeek-R1',
35
  'alias': 'Deepseek R1'
@@ -1738,7 +1742,7 @@ def index():
1738
  text = ""
1739
  token_data = None
1740
  error_message = ""
1741
- selected_model = request.args.get('model', request.form.get('model', 'llama4'))
1742
  custom_model = request.args.get('custom_model', request.form.get('custom_model', ''))
1743
  model_type = request.args.get('model_type', request.form.get('model_type', 'predefined'))
1744
 
 
18
 
19
  # Predefined tokenizer models with aliases
20
  TOKENIZER_MODELS = {
21
+ 'qwen3': {
22
+ 'name': 'Qwen/Qwen3-0.6B', #same as other sizes like Qwen/Qwen3-8B, , Qwen/Qwen3-14B, MOE Qwen/Qwen3-30B-A3B, Qwen/Qwen3-32B, Qwen/Qwen3-235B-A22B or quants/ggufs unsloth/Qwen3-32B-GGUF, unsloth/Qwen3-14B-GGUF, unsloth/Qwen3-8B-GGUF
23
+ 'alias': 'Qwen 3'
24
  },
25
  'mistral-small': {
26
  'name': 'mistralai/Mistral-Small-3.1-24B-Instruct-2503',
 
30
  'name': 'google/gemma-3-27b-it',
31
  'alias': 'Gemma 3 27B'
32
  },
33
+ 'llama4': {
34
+ 'name': 'meta-llama/Llama-4-Scout-17B-16E-Instruct', #same as meta-llama/Llama-4-Maverick-17B-128E-Instruct or meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 or meta-llama/Llama-4-Scout-17B-16E etc
35
+ 'alias': 'Llama 4'
36
+ },
37
  'deepseek-r1': {
38
  'name': 'deepseek-ai/DeepSeek-R1',
39
  'alias': 'Deepseek R1'
 
1742
  text = ""
1743
  token_data = None
1744
  error_message = ""
1745
+ selected_model = request.args.get('model', request.form.get('model', 'qwen3'))
1746
  custom_model = request.args.get('custom_model', request.form.get('custom_model', ''))
1747
  model_type = request.args.get('model_type', request.form.get('model_type', 'predefined'))
1748