[download gpt2 to local model path]
openai-community/gpt2 at main (huggingface.co)
openai-community/gpt2 at main
Detected Pickle imports (3) "torch.FloatStorage", "collections.OrderedDict", "torch._utils._rebuild_tensor_v2" What is a pickle import?
huggingface.co
[app.py]
[operation]
pip install transformers
python app.py
[result]
C:\Python311\Lib\site-packages\transformers\tokenization_utils_base.py:1601: FutureWarning: `clean_up_tokenization_spaces` was not set. It will be set to `True` by default. This behavior will be depracted in transformers v4.45, and will be then set to `False` by default. For more details check this issue: https://github.com/huggingface/transformers/issues/31884
warnings.warn(
The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.
Setting `pad_token_id` to `eos_token_id`:50256 for open-end generation.
The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable
results.
The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.
Setting `pad_token_id` to `eos_token_id`:50256 for open-end generation.
Input: What is jiu-jitsu?
Response: What is jiu-jitsu?
Jiu-jitsu is a martial art that is based on the principles of jiu-jitsu. It is a martial art that is based on the principles of jiu-jitsu.
Input: Explain how jiu-jitsu became known in Brazil
Response: Explain how jiu-jitsu became known in Brazil.
The Brazilian Jiu-Jitsu Association (BJJA) is a Brazilian organization that promotes the use of jiu-jitsu in Brazilian Jiu-Jitsu. The B
'PY(Python Image Processing)' 카테고리의 다른 글
| kakaotalk PC APP setText test (0) | 2024.08.15 |
|---|---|
| LLM Summary prompt test to facebook/bart-large-cnn (0) | 2024.08.14 |
| The process of lasso guard becoming side mount (0) | 2024.08.14 |
| The process of half guard becoming coyote guard (0) | 2024.08.13 |
| python web app puzzle game ( crop image, flask, pillow ) (0) | 2024.08.12 |