

# Chinese T5

## Model description

Controllable lyrics creation generation model. Chinese lyrics can be generated based on the provided singer name, song name and several song theme keywords.



The lyric creation robot is called “小L”. So at the end of the input question, you need to add "\\n小L："

## How to use

You can use this model directly with a pipeline for text2text generation:

```python
>>> from transformers import T5Tokenizer, T5ForConditionalGeneration, Text2TextGenerationPipeline
>>> tokenizer = T5Tokenizer.from_pretrained("souljoy/t5-chinese-lyric")
>>> model = T5ForConditionalGeneration.from_pretrained("souljoy/t5-chinese-lyric")
>>> text2text_generator = Text2TextGenerationPipeline(model, tokenizer)  
>>> text2text_generator("用户：写一首歌，歌手“毛毛”，歌曲“多少年后”，以“谎言，伤痛，心爱，掩饰，退一步，寻找”为主题。\\n小L：", max_length=512, do_sample=True)
```
{"language": "zh", "license": "apache-2.0", "tags": ["music", "art"], "widget": [{"text": "\u7528\u6237\uff1a\u5199\u4e00\u9996\u6b4c\uff0c\u6b4c\u624b\u201c\u6bdb\u6bdb\u201d\uff0c\u6b4c\u66f2\u201c\u591a\u5c11\u5e74\u540e\u201d\uff0c\u4ee5\u201c\u8c0e\u8a00\uff0c\u4f24\u75db\uff0c\u5fc3\u7231\uff0c\u63a9\u9970\uff0c\u9000\u4e00\u6b65\uff0c\u5bfb\u627e\u201d\u4e3a\u4e3b\u9898\u3002\\n\u5c0fL\uff1a"}], "pipeline_tag": "text2text-generation"}
transformers pytorch safetensors t5 text2text-generation music art zh license:apache-2.0 autotrain_compatible endpoints_compatible has_space text-generation-inference region:us
TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #music #art #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us 



# Chinese T5

## Model description

Controllable lyrics creation generation model. Chinese lyrics can be generated based on the provided singer name, song name and several song theme keywords.



The lyric creation robot is called “小L”. So at the end of the input question, you need to add "\\n小L："

## How to use

You can use this model directly with a pipeline for text2text generation:


# Chinese T5 ## Model description

Controllable lyrics creation generation model. Chinese lyrics can be generated based on the provided singer name, song name and several song theme keywords.



The lyric creation robot is called “小L”. So at the end of the input question, you need to add "\\n小L：" ## How to use

You can use this model directly with a pipeline for text2text generation:
TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #music #art #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us 
 # Chinese T5 ## Model description

Controllable lyrics creation generation model. Chinese lyrics can be generated based on the provided singer name, song name and several song theme keywords.



The lyric creation robot is called “小L”. So at the end of the input question, you need to add "\\n小L：" ## How to use

You can use this model directly with a pipeline for text2text generation:
TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #music #art #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us 
# Chinese T5## Model description

Controllable lyrics creation generation model. Chinese lyrics can be generated based on the provided singer name, song name and several song theme keywords.



The lyric creation robot is called “小L”. So at the end of the input question, you need to add "\\n小L："## How to use

You can use this model directly with a pipeline for text2text generation: