Text Generation
Transformers
PyTorch
JAX
English
gpt2
huggingartists
lyrics
lm-head
causal-lm
text-generation-inference
Instructions to use huggingartists/adele with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingartists/adele with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingartists/adele")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingartists/adele") model = AutoModelForCausalLM.from_pretrained("huggingartists/adele", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingartists/adele with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingartists/adele" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingartists/adele", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingartists/adele
- SGLang
How to use huggingartists/adele 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/adele" \ --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/adele", "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/adele" \ --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/adele", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingartists/adele with Docker Model Runner:
docker model run hf.co/huggingartists/adele
File size: 2,053 Bytes
8f6ddaf 2b69ef9 8f6ddaf 2b69ef9 8f6ddaf 2b69ef9 8f6ddaf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | {
"best_metric": 2.032806873321533,
"best_model_checkpoint": "output/adele/checkpoint-58",
"epoch": 2.0,
"global_step": 58,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.17,
"learning_rate": 0.0001280093426996125,
"loss": 3.0568,
"step": 5
},
{
"epoch": 0.33,
"learning_rate": 0.00010290000000000001,
"loss": 2.6421,
"step": 10
},
{
"epoch": 0.5,
"learning_rate": 6.86e-05,
"loss": 2.9003,
"step": 15
},
{
"epoch": 0.67,
"learning_rate": 3.4300000000000014e-05,
"loss": 2.3516,
"step": 20
},
{
"epoch": 0.83,
"learning_rate": 9.190657300387505e-06,
"loss": 2.5477,
"step": 25
},
{
"epoch": 1.0,
"learning_rate": 0.0,
"loss": 2.6543,
"step": 30
},
{
"epoch": 1.0,
"eval_loss": 2.1381053924560547,
"eval_runtime": 1.9271,
"eval_samples_per_second": 21.275,
"eval_steps_per_second": 3.113,
"step": 30
},
{
"epoch": 1.21,
"learning_rate": 1.3988015692592823e-05,
"loss": 2.4729,
"step": 35
},
{
"epoch": 1.38,
"learning_rate": 4.320852254368187e-05,
"loss": 2.506,
"step": 40
},
{
"epoch": 1.55,
"learning_rate": 7.969824496351964e-05,
"loss": 2.3156,
"step": 45
},
{
"epoch": 1.72,
"learning_rate": 0.00011301069913603334,
"loss": 2.1393,
"step": 50
},
{
"epoch": 1.9,
"learning_rate": 0.00013360900754314024,
"loss": 2.0381,
"step": 55
},
{
"epoch": 2.0,
"eval_loss": 2.032806873321533,
"eval_runtime": 2.3782,
"eval_samples_per_second": 20.604,
"eval_steps_per_second": 2.943,
"step": 58
}
],
"max_steps": 58,
"num_train_epochs": 2,
"total_flos": 60358459392000.0,
"trial_name": null,
"trial_params": null
}
|