Text Generation
Transformers
PyTorch
JAX
English
gpt2
huggingartists
lyrics
lm-head
causal-lm
text-generation-inference
Run this model with HF Jobs
Run huggingartists/tool on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/huggingartists/tool. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/huggingartists/tool on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/huggingartists/tool. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/huggingartists/tool. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use huggingartists/tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingartists/tool with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingartists/tool")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingartists/tool") model = AutoModelForCausalLM.from_pretrained("huggingartists/tool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingartists/tool with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingartists/tool" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingartists/tool", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingartists/tool
- SGLang
How to use huggingartists/tool 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/tool" \ --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/tool", "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/tool" \ --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/tool", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingartists/tool with Docker Model Runner:
docker model run hf.co/huggingartists/tool
Commit ·
dc531bc
1
Parent(s): 24d67c7
huggingartists
Browse filesFiles changed (10)
- README.md+3-3
- config.json+2-2
- evaluation.txt+1-1
- flax_model.msgpack+1-1
- optimizer.pt+1-1
- pytorch_model.bin+1-1
- rng_state.pth+1-1
- scheduler.pt+1-1
- trainer_state.json+33-7
- training_args.bin+2-2
44 unmodified lines45464748495051525354555657585944 unmodified linesdataset = load_dataset("huggingartists/tool")```[Explore the data](https://wandb.ai/huggingartists/huggingartists/runs/2i0nfbt3/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.## Training procedureThe model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on Tool's lyrics.Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/huggingartists/huggingartists/runs/35jhzbcz) for full transparency and reproducibility.At the end of training, [the final model](https://wandb.ai/huggingartists/huggingartists/runs/35jhzbcz/artifacts) is logged and versioned.## How to use44 unmodified lines45464748495051525354555657585944 unmodified linesdataset = load_dataset("huggingartists/tool")```[Explore the data](https://wandb.ai/huggingartists/huggingartists/runs/2w1h70ok/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.## Training procedureThe model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on Tool's lyrics.Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/huggingartists/huggingartists/runs/1zikehwi) for full transparency and reproducibility.At the end of training, [the final model](https://wandb.ai/huggingartists/huggingartists/runs/1zikehwi/artifacts) is logged and versioned.## How to use
29 unmodified lines303132333435363729 unmodified lines"task_specific_params": {"text-generation": {"do_sample": true,"max_length": 200,"min_length": 100,"temperature": 1.0,"top_p": 0.95}29 unmodified lines303132333435363729 unmodified lines"task_specific_params": {"text-generation": {"do_sample": true,"max_length": 150,"min_length": 80,"temperature": 1.0,"top_p": 0.95}
1{"eval_loss": 2.619758367538452, "eval_runtime": 0.6775, "eval_samples_per_second": 19.187, "eval_steps_per_second": 2.952, "epoch": 4.0}1{"eval_loss": 2.4025585651397705, "eval_runtime": 0.1885, "eval_samples_per_second": 79.587, "eval_steps_per_second": 10.612, "epoch": 5.0}
123version https://git-lfs.github.com/spec/v1oid sha256:8269b8328a0bf533c21e8a9cf8abb1251769e6472a5655d46e0263fa5c36c202size 497764120123version https://git-lfs.github.com/spec/v1oid sha256:59dff47de0389edfe6c404dcee5ed4f8c4ee963861d19bfeb125bd68aade1e7asize 497764120
123version https://git-lfs.github.com/spec/v1oid sha256:ffe7e75417a67202ed0582065f1a9bd973196ecaaf6283e0353d348b8b2c9ce5size 995603825123version https://git-lfs.github.com/spec/v1oid sha256:ccad7917a97542e610dc3ed8f6c0eb8cb1345f9ccee69a38ffa843d74ec7ebd3size 995603825
123version https://git-lfs.github.com/spec/v1oid sha256:cda16091180e330446812bef2213ce1d274c30224756be5cc5af4152ec723633size 510403817123version https://git-lfs.github.com/spec/v1oid sha256:b7cb352f906fb72d54412d702d0d396c7534a832d630769bbe9fca89f18763absize 510403817
123version https://git-lfs.github.com/spec/v1oid sha256:594209d63fbcb9f59cdfbe58a2c20b27bc86dba538eb2c90c6868cbdfcae50dcsize 14503123version https://git-lfs.github.com/spec/v1oid sha256:ac06a0a74e2cc1058f2f6b0e902120bc773c303ad8f07aaaabab44c3ab1b8ad3size 14503
123version https://git-lfs.github.com/spec/v1oid sha256:46ac68174300d9f94d4de67167852595a5a6202d18703222cb9d7154becc9e21size 623123version https://git-lfs.github.com/spec/v1oid sha256:516bee0a3338981961397871d9fa5b0b01ff9ed881ae03d42fa50217bde1fa30size 623
1234567877 unmodified lines8687888990919293949596{"best_metric": 2.619758367538452,"best_model_checkpoint": "output/tool/checkpoint-44","epoch": 4.0,"global_step": 44,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,77 unmodified lines"eval_samples_per_second": 23.33,"eval_steps_per_second": 3.589,"step": 44}],"max_steps": 44,"num_train_epochs": 4,"total_flos": 45987397632000.0,"trial_name": null,"trial_params": null}1234567877 unmodified lines8687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122{"best_metric": 2.4025585651397705,"best_model_checkpoint": "output/tool/checkpoint-55","epoch": 5.0,"global_step": 55,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,77 unmodified lines"eval_samples_per_second": 23.33,"eval_steps_per_second": 3.589,"step": 44},{"epoch": 4.09,"learning_rate": 0.00013442121798995453,"loss": 2.4054,"step": 45},{"epoch": 4.55,"learning_rate": 5.883720209445262e-05,"loss": 2.2843,"step": 50},{"epoch": 5.0,"learning_rate": 0.0,"loss": 2.4935,"step": 55},{"epoch": 5.0,"eval_loss": 2.4025585651397705,"eval_runtime": 0.1869,"eval_samples_per_second": 80.273,"eval_steps_per_second": 10.703,"step": 55}],"max_steps": 55,"num_train_epochs": 5,"total_flos": 57222955008000.0,"trial_name": null,"trial_params": null}
123version https://git-lfs.github.com/spec/v1oid sha256:238f0800c1a375eef579856b16d2fb58efef9b9559fe5020f52fdd21d2d5f559size 3055123version https://git-lfs.github.com/spec/v1oid sha256:592b1f50c346e9d470c4bc200ee6c5910a0e9902cb3de28db61f17131da5e560size 2991
README.md+3-3
config.json+2-2
evaluation.txt+1-1
flax_model.msgpack+1-1
optimizer.pt+1-1
pytorch_model.bin+1-1
rng_state.pth+1-1
scheduler.pt+1-1
trainer_state.json+33-7
training_args.bin+2-2