Site Navigation

Selected Content

Journal-like notes
Reading notes
Zeitgeist notes

Einstein and Infeld on Physical Concepts
Jiddu Krishnamurti on Truth

the Drawing Board

Edit on GitHub


HuggingFace learnings

2023-06-21:

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install --upgrade pip
(venv) $ pip install wheel

2023-06-22:

(venv) $ pip install transformers datasets torch xformers

the Python code:

from transformers import pipeline

summarizer = pipeline(task="summarization") # this downloads a default summarization model

summarizer("text to summarize")