rovi27 commited on
Commit
b933c54
1 Parent(s): f86f7dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,12 +8,12 @@ import os
8
 
9
  #sft_model = "somosnlp/ComeBien_mistral-7b-instruct-v0.2-bnb-4bit"
10
  #base_model_name = "unsloth/Mistral-7B-Instruct-v0.2"
11
- #sft_model = "somosnlp/ComeBien_gemma-2b-it-bnb-4bit"
12
- sft_model = "somosnlp/RecetasDeLaAbuela5k_gemma-2b-bnb-4bit"
13
  #base_model_name = "unsloth/gemma-2b-bnb-4bit"
14
  base_model_name = "unsloth/gemma-2b-it-bnb-4bit"
15
 
16
- max_seq_length=2000
17
  base_model = AutoModelForCausalLM.from_pretrained(base_model_name,return_dict=True,device_map="auto", torch_dtype=torch.float16,)
18
  tokenizer = AutoTokenizer.from_pretrained(base_model_name, max_length = max_seq_length)
19
  ft_model = PeftModel.from_pretrained(base_model, sft_model)
 
8
 
9
  #sft_model = "somosnlp/ComeBien_mistral-7b-instruct-v0.2-bnb-4bit"
10
  #base_model_name = "unsloth/Mistral-7B-Instruct-v0.2"
11
+ sft_model = "somosnlp/ComeBien_gemma-2b-it-bnb-4bit"
12
+ #sft_model = "somosnlp/RecetasDeLaAbuela5k_gemma-2b-bnb-4bit"
13
  #base_model_name = "unsloth/gemma-2b-bnb-4bit"
14
  base_model_name = "unsloth/gemma-2b-it-bnb-4bit"
15
 
16
+ max_seq_length=1000
17
  base_model = AutoModelForCausalLM.from_pretrained(base_model_name,return_dict=True,device_map="auto", torch_dtype=torch.float16,)
18
  tokenizer = AutoTokenizer.from_pretrained(base_model_name, max_length = max_seq_length)
19
  ft_model = PeftModel.from_pretrained(base_model, sft_model)