Text Generation
Transformers
PyTorch
JAX
English
gpt2
huggingartists
lyrics
lm-head
causal-lm
text-generation-inference
Instructions to use huggingartists/kipelov with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingartists/kipelov with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingartists/kipelov")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingartists/kipelov") model = AutoModelForCausalLM.from_pretrained("huggingartists/kipelov", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingartists/kipelov with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingartists/kipelov" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingartists/kipelov", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingartists/kipelov
- SGLang
How to use huggingartists/kipelov 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/kipelov" \ --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/kipelov", "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/kipelov" \ --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/kipelov", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingartists/kipelov with Docker Model Runner:
docker model run hf.co/huggingartists/kipelov
| { | |
| "best_metric": 2.1928138732910156, | |
| "best_model_checkpoint": "output/kipelov/checkpoint-24", | |
| "epoch": 6.0, | |
| "global_step": 24, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "eval_loss": 2.2656543254852295, | |
| "eval_runtime": 0.4465, | |
| "eval_samples_per_second": 20.158, | |
| "eval_steps_per_second": 4.48, | |
| "step": 4 | |
| }, | |
| { | |
| "epoch": 1.25, | |
| "learning_rate": 2.009247481060283e-05, | |
| "loss": 2.4041, | |
| "step": 5 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_loss": 2.2449731826782227, | |
| "eval_runtime": 0.4369, | |
| "eval_samples_per_second": 20.602, | |
| "eval_steps_per_second": 4.578, | |
| "step": 8 | |
| }, | |
| { | |
| "epoch": 2.5, | |
| "learning_rate": 6.860000000000001e-05, | |
| "loss": 2.2367, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "eval_loss": 2.2337002754211426, | |
| "eval_runtime": 0.4476, | |
| "eval_samples_per_second": 20.106, | |
| "eval_steps_per_second": 4.468, | |
| "step": 12 | |
| }, | |
| { | |
| "epoch": 3.75, | |
| "learning_rate": 0.0001171075251893971, | |
| "loss": 2.0169, | |
| "step": 15 | |
| }, | |
| { | |
| "epoch": 4.0, | |
| "eval_loss": 2.213982343673706, | |
| "eval_runtime": 0.4433, | |
| "eval_samples_per_second": 20.301, | |
| "eval_steps_per_second": 4.511, | |
| "step": 16 | |
| }, | |
| { | |
| "epoch": 5.0, | |
| "learning_rate": 0.0, | |
| "loss": 1.9151, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 5.0, | |
| "eval_loss": 2.219846248626709, | |
| "eval_runtime": 0.4246, | |
| "eval_samples_per_second": 21.196, | |
| "eval_steps_per_second": 4.71, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 6.0, | |
| "eval_loss": 2.1928138732910156, | |
| "eval_runtime": 0.442, | |
| "eval_samples_per_second": 20.361, | |
| "eval_steps_per_second": 4.525, | |
| "step": 24 | |
| } | |
| ], | |
| "max_steps": 24, | |
| "num_train_epochs": 6, | |
| "total_flos": 20380778496000.0, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |