Downloads · 30 days
20
20% of all-time downloads
sahil2801/persuasion_model_glaive
persuasion_model_glaive is a text generation model from sahil2801. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Model generated using the Glaive platform - https://app.glaive.ai
Downloads · 30 days
20
20% of all-time downloads
All-time downloads
101
Public
Repo size
29 GB
Likes
0
Public
Click a slice to open those files.
.bin29 GB · 100%
From the Hugging Face model README
Model generated using the Glaive platform - https://app.glaive.ai
Use the following script-
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_path = "sahil2801/persuasion_model_glaive"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path).half().cuda()
prompt = '''Claim: <> \n\n Thought: <>'''
inputs = tokenizer(prompt,return_tensors="pt").to(model.device)
outputs = model.generate(**inputs,do_sample=True,eos_token_id=tokenizer.eos_token_id,temperature=0.9,max_new_tokens=1500)
print(tokenizer.decode(outputs[0],skip_special_tokens=True))