# Introduction
This is ItbearZhang/facebook-opt-125m-with-alpacadataset using the dataset from [tatsu-lab/stanford_alpaca: Code and documentation to train Stanford's Alpaca models, and generate the data. (github.com)](https://github.com/tatsu-lab/stanford_alpaca)
and the opt-125m pretrained lm model from facebook/opt-125m.

# How to use it to interfere?
``` python
from transformers import pipeline

def generate_by_pipeline(instruction, inputs=""):
    if inputs == "":
        prompt = f"### Instruction:\n{instruction}\n\n### Response:"
    else:
        prompt = f"### Instruction:\n{instruction}\n\n### Input:\n{inputs}\n\n### Response:"
    return generator(prompt)[0]['generated_text']

print(generate_by_pipeline("What is the capital of China?"))
```
{"license": "mit"}
transformers pytorch opt text-generation license:mit autotrain_compatible endpoints_compatible text-generation-inference region:us
TAGS
#transformers #pytorch #opt #text-generation #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 

# Introduction
This is ItbearZhang/facebook-opt-125m-with-alpacadataset using the dataset from tatsu-lab/stanford_alpaca: Code and documentation to train Stanford's Alpaca models, and generate the data. (URL)
and the opt-125m pretrained lm model from facebook/opt-125m.

# How to use it to interfere?

# Introduction
This is ItbearZhang/facebook-opt-125m-with-alpacadataset using the dataset from tatsu-lab/stanford_alpaca: Code and documentation to train Stanford's Alpaca models, and generate the data. (URL)
and the opt-125m pretrained lm model from facebook/opt-125m. # How to use it to interfere?
TAGS
#transformers #pytorch #opt #text-generation #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
 # Introduction
This is ItbearZhang/facebook-opt-125m-with-alpacadataset using the dataset from tatsu-lab/stanford_alpaca: Code and documentation to train Stanford's Alpaca models, and generate the data. (URL)
and the opt-125m pretrained lm model from facebook/opt-125m. # How to use it to interfere?