### Useless ChitChat Language Model

Basic Dialog Model from DialoGPT-small.
Finetuned on Dialog dataset. (Daily Dialog, MultiWoz)  

For better usage. Use repo https://github.com/jinymusim/Daily-Dialog-GPT

### How to use

If used with repo https://github.com/jinymusim/Daily-Dialog-GPT  
User only needs to start the `ds.py` script. Otherwise use following 


Use it as any torch python Language Model

```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

tokenizer = AutoTokenizer.from_pretrained("jinymusim/dialogmodel")
model = AutoModelForCausalLM.from_pretrained("jinymusim/dialogmodel")

# Take user Input
user_utterance = input('USER> ')
user_utterance = user_utterance.strip()
tokenized_context = tokenizer.encode(user_utterance + tokenizer.eos_token, return_tensors='pt')

# generated a response, limit max_lenght to resonable size 
out_response = model.generate(tokenized_context, 
                                max_length=100,
                                num_beams=2,
                                no_repeat_ngram_size=2,
                                early_stopping=True,
                                pad_token_id=self.tokenizer.eos_token_id)

# Truncate User Input
decoded_response = self.tokenizer.decode(out_response[0], skip_special_tokens=True)[len(user_utterance):]

print(f'SYSTEM> {decoded_response}')
```
{"language": ["en"], "license": "mit", "datasets": ["daily_dialog", "multi_woz_v22"], "pipeline_tag": "conversational"}
transformers pytorch gpt2 text-generation conversational en dataset:daily_dialog dataset:multi_woz_v22 license:mit autotrain_compatible endpoints_compatible text-generation-inference region:us
TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #en #dataset-daily_dialog #dataset-multi_woz_v22 #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 

### Useless ChitChat Language Model

Basic Dialog Model from DialoGPT-small.
Finetuned on Dialog dataset. (Daily Dialog, MultiWoz)  

For better usage. Use repo URL

### How to use

If used with repo URL  
User only needs to start the 'URL' script. Otherwise use following 


Use it as any torch python Language Model


### Useless ChitChat Language Model

Basic Dialog Model from DialoGPT-small.
Finetuned on Dialog dataset. (Daily Dialog, MultiWoz)  

For better usage. Use repo URL ### How to use

If used with repo URL  
User only needs to start the 'URL' script. Otherwise use following 


Use it as any torch python Language Model
TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #en #dataset-daily_dialog #dataset-multi_woz_v22 #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
 ### Useless ChitChat Language Model

Basic Dialog Model from DialoGPT-small.
Finetuned on Dialog dataset. (Daily Dialog, MultiWoz)  

For better usage. Use repo URL ### How to use

If used with repo URL  
User only needs to start the 'URL' script. Otherwise use following 


Use it as any torch python Language Model
TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #en #dataset-daily_dialog #dataset-multi_woz_v22 #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us 
### Useless ChitChat Language Model

Basic Dialog Model from DialoGPT-small.
Finetuned on Dialog dataset. (Daily Dialog, MultiWoz)  

For better usage. Use repo URL### How to use

If used with repo URL  
User only needs to start the 'URL' script. Otherwise use following 


Use it as any torch python Language Model