bstraehle commited on
Commit
716023d
1 Parent(s): 81231d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def fine_tune_model(base_model_id, dataset):
41
 
42
  # Load pre-trained model and tokenizer
43
  model_name = "meta-llama/Meta-Llama-3.1-8B-Instruct"
44
- model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", quantization_config=bnb_config)
45
  tokenizer = AutoTokenizer.from_pretrained(model_name)
46
 
47
  # Preprocess the dataset
 
41
 
42
  # Load pre-trained model and tokenizer
43
  model_name = "meta-llama/Meta-Llama-3.1-8B-Instruct"
44
+ model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype=torch.bfloat16, quantization_config=bnb_config)
45
  tokenizer = AutoTokenizer.from_pretrained(model_name)
46
 
47
  # Preprocess the dataset