# Hey gang getting errors with PEGASUS PARAPHRASE

**URL:** <https://discuss.huggingface.co/t/hey-gang-getting-errors-with-pegasus-paraphrase/12350>\
**Category:** Beginners\
**Created:** [November 28, 2021, 10:24pm UTC](https://discuss.huggingface.co/t/hey-gang-getting-errors-with-pegasus-paraphrase/12350 "2021-11-28T22:24:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrianSerp](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@BrianSerp](https://discuss.huggingface.co/u/BrianSerp)\
**Post date:** [November 28, 2021, 10:24pm UTC](https://discuss.huggingface.co/t/hey-gang-getting-errors-with-pegasus-paraphrase/12350/1 "2021-11-28T22:24:44Z")

</div>

I’m getting these random output errors maybe 1/50 times I process a sentence.

generated text: Is a 12 person tent 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110 888-739-5110

This is the number for some random pizza place. Why does it keep appearing in my output. Is there anyway I can make sure this doesn’t happen again. I can’t find the pattern to my input data causing this.

Please let me know if you have a solution. I have found this error on both the hugging face interference and also using torch on Gcollab. It’s driving me nuts.

---

<div class="post-metadata">

**Author:** ![praveencqr](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@praveencqr](https://discuss.huggingface.co/u/praveencqr)\
**Post date:** [February 26, 2022, 9:41pm UTC](https://discuss.huggingface.co/t/hey-gang-getting-errors-with-pegasus-paraphrase/12350/2 "2022-02-26T21:41:17Z")

</div>

Hey, I’m also getting the same issues. Were you by any chance able to figure out the bug?

---

<div class="post-metadata">

**Author:** ![kevin91nl](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kevin91nl/32/12690_2.png) [@kevin91nl](https://discuss.huggingface.co/u/kevin91nl)\
**Post date:** [November 23, 2022, 11:14am UTC](https://discuss.huggingface.co/t/hey-gang-getting-errors-with-pegasus-paraphrase/12350/3 "2022-11-23T11:14:52Z")

</div>

I got the same error (also a repetition of the number `888-739-5110`) for the following input text: [HuggingFace Pegasus XSUM error](https://huggingface.co/google/pegasus-xsum?text=he+information+Apple+collects+about+the+use+of+iPhones+and+iPads+is+not+anonymous%2C+even+though+the+tech+company+claims+it+is.+So+say+researchers+at+software+company+Mysk+based+on+their+own+research.+Apple%27s+privacy+policy+states+that+%22iPhone+analytics+data+may+include+details+about+hardware+and+operating+system+specifications%2C+performance+statistics%2C+and+data+about+your+use+of+your+devices+and+apps.+Your+identity+cannot+be+ascertained+from+this+data.%22%0A%0AAccording+to+Mysk+researchers%2C+the+analysis+data+sent+to+Apple+contained+a+Directory+Services+Identifier+%28DSID%29%2C+a+unique+identification+number+for+identifying+iCloud+accounts.+%22That+means+Apples+analytics+can+identify+you+personally%2C%22+the+researchers+said+on+Twitter.+%22Apple+states+in+its+privacy+policy+that+the+data+collected+does+not+identify+you+personally.+That%27s+not+right.%22+Earlier%2C+the+researchers+had+shown+that+Apples+App+Store+continues+to+send+data+to+the+tech+company+even+though+users+have+disabled+analytics.+The+researchers+found+that+the+data+was+collected.+%7C+s1)

After investigating the issue, it seems that the probability vector contained an `infinity` value. To overcome the issue, I used the following parameters for the model:

```auto
parameters = {
            "temperature": 0.1,
            "repetition_penalty": 100.0,
            "do_sample": False,
            "top_k": 100,
            "top_p": 0.8,
            "no_repeat_ngram_size": 3,
}

```

This will overcome the issue with the repetitive numbers at least (and solved my problem).
