Pankaj Mathur commited on
Commit
feb746d
1 Parent(s): c395ffb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -1
README.md CHANGED
@@ -48,7 +48,13 @@ import torch
48
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
49
 
50
  tokenizer = AutoTokenizer.from_pretrained("psmathur/orca_mini_v3_7b", use_fast=False)
51
- model = AutoModelForCausalLM.from_pretrained("psmathur/orca_mini_v3_7b", torch_dtype=torch.float16, low_cpu_mem_usage=True, device_map="auto")
 
 
 
 
 
 
52
  system_prompt = "### System:\nYou are an AI assistant that follows instruction extremely well. Help as much as you can.\n\n"
53
 
54
  #generate text steps
 
48
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
49
 
50
  tokenizer = AutoTokenizer.from_pretrained("psmathur/orca_mini_v3_7b", use_fast=False)
51
+ model = AutoModelForCausalLM.from_pretrained(
52
+ "psmathur/orca_mini_v3_7b",
53
+ torch_dtype=torch.float16,
54
+ load_in_8bit=True,
55
+ low_cpu_mem_usage=True,
56
+ device_map="auto"
57
+ )
58
  system_prompt = "### System:\nYou are an AI assistant that follows instruction extremely well. Help as much as you can.\n\n"
59
 
60
  #generate text steps