์๋ฌ ์ํฉ
from transformers import pipeline, set_seed
generator = pipeline('text-generation', model='gpt2')
set_seed(42)
generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
์๋ฌ๋ฉ์ธ์ง
ํด๊ฒฐ
pip3 install ipywidgets
์ฃผํผํฐ ๋ ธํธ๋ถ์์ !pip3 install ipywidgets ํ๋ ๊ฑด ์์ฉ์ด ์์๊ณ ,
pytorch ๊ฐ์ํ๊ฒฝ ์์ ๋ค์ด๊ฐ์ commend line์์ ์ค์นํ์ฌ ํด๊ฒฐํ๋ค.
'TIL > Linux' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Ubuntu] AttributeError: 'tuple' object has no attribute 'shape' (0) | 2021.12.13 |
---|---|
์ฃผํผํฐ์์ ๊ฐ์ํ๊ฒฝ ํด๋ ๊ฒฝ๋ก ํ์ธ (0) | 2021.12.10 |
vm ํ ๋ง ์๋ธ (0) | 2021.06.19 |
๊ฐ์๊ธฐ vi ๋ช ๋ น์ด ์๋จ (0) | 2021.06.19 |
The command could not be located because '/usr/bin' is not included in the PATH environment variable. (0) | 2021.06.19 |