squarelike commited on
Commit
70218b5
1 Parent(s): 2dc7fa1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -36,14 +36,16 @@ I trained with 1x A6000 GPUs for 90 hours.
36
  ```python
37
  from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList
38
  import torch
39
- repo = "squarelike/Gugugo-koen-7B-V1.1"
40
  model = AutoModelForCausalLM.from_pretrained(
41
  repo,
42
- load_in_4bit=True
43
  device_map='auto'
44
  )
45
  tokenizer = AutoTokenizer.from_pretrained(repo)
46
 
 
 
 
47
  class StoppingCriteriaSub(StoppingCriteria):
48
  def __init__(self, stops = [], encounters=1):
49
  super().__init__()
 
36
  ```python
37
  from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList
38
  import torch
39
+ repo = "squarelike/Gugugo-koen-7B-V1.1-GPTQ"
40
  model = AutoModelForCausalLM.from_pretrained(
41
  repo,
 
42
  device_map='auto'
43
  )
44
  tokenizer = AutoTokenizer.from_pretrained(repo)
45
 
46
+ model.eval()
47
+ model.config.use_cache = True
48
+
49
  class StoppingCriteriaSub(StoppingCriteria):
50
  def __init__(self, stops = [], encounters=1):
51
  super().__init__()