Closed Spongeorge closed 1 year ago
Hi, the previous code in README is the pseudo-code to show how to set up PASTA. We just updated this part with effective head_config
. Now you can test the new code in QuickStart and the example with an effective head_config
.
Cool, also wanted to note that without adding a max_new_tokens or max_length parameter to the generate function it defaults to 20 which is less than the size of the prompt and so it doesn't output anything. With max_new_tokens=40 I get the outputs:
(with PASTA)
<s> Mary is a doctor. She obtains her bachelor degree from UCSD. Answer the occupation of Mary and generate the answer as json format.
\begin{code}
{
"name": "Mary",
"occupation": "Doctor",
"degree": "Bachelor",
(without PASTA)
<s> Mary is a doctor. She obtains her bachelor degree from UCSD. Answer the occupation of Mary and generate the answer as json format.\nThe answer should be in json format.\nThe answer should be in json format. The answer should be in json format.\nThe answer should be in json format. The answer should be in
This code:
Produces the output: