amitayusht commited on
Commit
fba72ea
·
verified ·
1 Parent(s): 4e59751

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -16,7 +16,8 @@ from transformers import pipeline
16
  model_name = "amitayusht/ProofWala-Multilingual"
17
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
18
  tokenizer = AutoTokenizer.from_pretrained(model_name)
19
- pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
 
20
  # Example usage
21
  state = """
22
  Goals to prove:
 
16
  model_name = "amitayusht/ProofWala-Multilingual"
17
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
18
  tokenizer = AutoTokenizer.from_pretrained(model_name)
19
+ pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer, device=-1) # device=0 for GPU, -1 for CPU
20
+
21
  # Example usage
22
  state = """
23
  Goals to prove: