Instructions to use Parallax-LM/gpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Parallax-LM/gpt2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Parallax-LM/gpt2 # Run inference directly in the terminal: llama cli -hf Parallax-LM/gpt2
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Parallax-LM/gpt2 # Run inference directly in the terminal: llama cli -hf Parallax-LM/gpt2
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Parallax-LM/gpt2 # Run inference directly in the terminal: ./llama-cli -hf Parallax-LM/gpt2
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Parallax-LM/gpt2 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Parallax-LM/gpt2
Use Docker
docker model run hf.co/Parallax-LM/gpt2
- LM Studio
- Jan
- Ollama
How to use Parallax-LM/gpt2 with Ollama:
ollama run hf.co/Parallax-LM/gpt2
- Unsloth Desktop
- Docker Model Runner
How to use Parallax-LM/gpt2 with Docker Model Runner:
docker model run hf.co/Parallax-LM/gpt2
- Lemonade
How to use Parallax-LM/gpt2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Parallax-LM/gpt2
Run and chat with the model
lemonade run user.gpt2-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download tokenizer_config.json from Parallax-LM/gpt2: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/Parallax-LM/gpt2/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Parallax-LM/gpt2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Parallax-LM/gpt2/resolve/main/tokenizer_config.json
325 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|endoftext|>", | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "is_local": true, | |
| "local_files_only": false, | |
| "model_max_length": 1024, | |
| "pad_token": "<|endoftext|>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |