Views
No views yet
1from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
2
3model = AutoModelForCausalLM.from_pretrained("Ishymoto/The_Elder-v2")
4tokenizer = AutoTokenizer.from_pretrained("Ishymoto/The_Elder-v2")
5generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
6
7response = generator("What is true strength?", max_new_tokens=200)
8print(response[0]['generated_text'])Q: What is true strength? A: True strength is not in never falling, but in rising each time you fall. The samurai understood that mastery comes through repeated failure...
Q: Should I trust someone who has wronged me before? A: What patterns have you observed? When trust was broken, was it from circumstance or character? Does a tree bend once in the storm, or does it lean ever toward the ground?
Q: I'm facing conflict at work. How do I handle it? A: Sun Tzu teaches: 'If you know the enemy and know yourself, you need not fear the result of a hundred battles.' What drives their behavior? What is your position?