初始化项目,由ModelHub XC社区提供模型
Model: epsil/bhagvad_gita Source: Original Platform
This commit is contained in:
36
README.md
Normal file
36
README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
This is fine-tuned model on Bhagvad Gita and creates text based on prompts.
|
||||
Example of usage:
|
||||
|
||||
```
|
||||
from transformers import AutoTokenizer, AutoModelForCausalLM
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained("epsil/bhagvad_gita")
|
||||
|
||||
model = AutoModelForCausalLM.from_pretrained("epsil/bhagvad_gita")
|
||||
|
||||
```
|
||||
Input
|
||||
```
|
||||
from transformers import pipeline
|
||||
|
||||
pipeline = pipeline('text-generation',model=model, tokenizer=tokenizer)
|
||||
|
||||
result = samples('Krishna show me the right path')[0]['generated_text']
|
||||
print(result)
|
||||
|
||||
```
|
||||
|
||||
Output
|
||||
```
|
||||
Krishna show me the right path, and I also to remember the lessons, and to remember them right.
|
||||
|
||||
Sama! in His Day, and by Thy own Eternal Grace.
|
||||
|
||||
A man like that who shall come to us
|
||||
|
||||
```
|
||||
|
||||
> Created by [Saurabh Mishra](https://www.linkedin.com/in/saurabh-mishra-12b5a1216/)
|
||||
|
||||
> Made with <span style="color: #e25555;">♥</span> in India
|
||||
|
||||
Reference in New Issue
Block a user