Text Generation
Transformers
PyTorch
JAX
English
gpt2
huggingartists
lyrics
lm-head
causal-lm
text-generation-inference
Instructions to use huggingartists/eminem with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingartists/eminem with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingartists/eminem")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingartists/eminem") model = AutoModelForCausalLM.from_pretrained("huggingartists/eminem", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingartists/eminem with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingartists/eminem" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingartists/eminem", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingartists/eminem
- SGLang
How to use huggingartists/eminem with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "huggingartists/eminem" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingartists/eminem", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "huggingartists/eminem" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingartists/eminem", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingartists/eminem with Docker Model Runner:
docker model run hf.co/huggingartists/eminem
Commit History
-
huggingartists
c4cb4d3
-
huggingartists
e2275aa
-
huggingartists
60643e2
-
huggingartists
ead4f2b
-
huggingartists
87b9240
-
huggingartists
f00cb76 -
huggingartists
2be8f97
-
huggingartists
32dbbca
-
huggingartists
5ba433a
-
huggingartists
22862bd -
huggingartists
a589ae8 -
huggingartists
44358ee
-
huggingartists
1559e0a
-
huggingartists
b2b44b1
-
huggingartists
fc38921
-
huggingartists
6d2c1bd
-
huggingartists
4a39723
-
huggingartists
ad9a638
-
huggingartists
03fc98d
-
huggingartists
fe74de0
-
huggingartists
a02c22e
-
huggingartists
85b12f3 -
huggingartists
30daf11
-
huggingartists
6376ffd
-
huggingartists
3f37066
-
huggingartists
28aecb0
-
huggingartists
d800da3
-
huggingartists
47f6cea
-
huggingartists
aa8012e -
huggingartists
d9d24b5
-
huggingartists
608729c
-
huggingartists
70e8d8c
-
huggingartists
cd21cbc
-
huggingartists
b5b1787
-
huggingartists
2ecbf23
-
huggingartists
dcd907c
-
huggingartists
48d55f1
-
huggingartists
4fe4412
-
huggingartists
51ee662
-
huggingartists
0c5fee8 -
huggingartists
e43591a
-
huggingartists
8448353
-
huggingartists
f7d367a
-
huggingartists
50b4895 -
huggingartists
458e394
-
huggingartists
be1285a
-
huggingartists
bb97fc0
-
huggingartists
a977eff
-
huggingartists
bd184b4 -
huggingartists
0f47840