dvilasuero HF staff commited on
Commit
c50c6cc
1 Parent(s): d90c0c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -3
README.md CHANGED
@@ -31,9 +31,6 @@ def get_score(model, tokenizer, prompt, response):
31
  # Tokenize the input sequences
32
  inputs = tokenizer.encode_plus(prompt, response, truncation=True, padding="max_length", max_length=512, return_tensors="pt")
33
 
34
- # Move inputs to the appropriate device
35
- #inputs = {k: v.to(device) for k, v in inputs.items()}
36
-
37
  # Perform forward pass
38
  with torch.no_grad():
39
  outputs = model(**inputs)
 
31
  # Tokenize the input sequences
32
  inputs = tokenizer.encode_plus(prompt, response, truncation=True, padding="max_length", max_length=512, return_tensors="pt")
33
 
 
 
 
34
  # Perform forward pass
35
  with torch.no_grad():
36
  outputs = model(**inputs)