Instructions to use bigjoedata/rockbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigjoedata/rockbot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigjoedata/rockbot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigjoedata/rockbot") model = AutoModelForCausalLM.from_pretrained("bigjoedata/rockbot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigjoedata/rockbot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigjoedata/rockbot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigjoedata/rockbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigjoedata/rockbot
- SGLang
How to use bigjoedata/rockbot 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 "bigjoedata/rockbot" \ --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": "bigjoedata/rockbot", "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 "bigjoedata/rockbot" \ --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": "bigjoedata/rockbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigjoedata/rockbot with Docker Model Runner:
docker model run hf.co/bigjoedata/rockbot
Commit Β·
fb03d85
1
Parent(s): b854631
Model & README Update
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
|
| 2 |
# πΈ π₯ Rockbot π€ π§
|
| 3 |
-
A [GPT-2](https://
|
| 4 |
|
| 5 |
**Instructions:** Type in a fake song title, pick an artist, click "Generate".
|
| 6 |
|
|
@@ -8,13 +8,15 @@ Note: Due to the nature of language models, lyrics bleed across artists and you
|
|
| 8 |
|
| 9 |
Finally, these lyrics are computer generated. Not all of these will be non-repetitive and/or coherent. Just have fun.
|
| 10 |
|
| 11 |
-
[Repository](https://github.com/bigjoedata/rockbot)
|
| 12 |
|
| 13 |
-
[Model page on Hugging Face](https://huggingface.co/bigjoedata/rockbot)
|
|
|
|
|
|
|
| 14 |
|
| 15 |
πΉ πͺ π· πΊ πͺ πͺ π»
|
| 16 |
## Background
|
| 17 |
-
With the shutdown of [Google Play Music](https://en.wikipedia.org/wiki/Google_Play_Music) I used Google's takeout function to gather the metadata from artists I've listened to over the past several years. I wanted to take advantage of this bounty to build something fun. I scraped the top 50 lyrics for artists I'd listened to at least once from [Genius](https://genius.com/), then fine tuned [GPT-2's](https://openai.com/blog/better-language-models/) 124M token model using the [AITextGen](https://github.com/minimaxir/aitextgen) framework after considerable post-processing.
|
| 18 |
|
| 19 |
### Full Tech Stack
|
| 20 |
[Google Play Music](https://en.wikipedia.org/wiki/Google_Play_Music) (R.I.P.).
|
|
|
|
| 1 |
|
| 2 |
# πΈ π₯ Rockbot π€ π§
|
| 3 |
+
A [GPT-2](https://openai.com/blog/better-language-models/) based lyrics generator fine-tuned on the writing styles of 16000 songs by 270 artists across MANY genres (not just rock).
|
| 4 |
|
| 5 |
**Instructions:** Type in a fake song title, pick an artist, click "Generate".
|
| 6 |
|
|
|
|
| 8 |
|
| 9 |
Finally, these lyrics are computer generated. Not all of these will be non-repetitive and/or coherent. Just have fun.
|
| 10 |
|
| 11 |
+
[Github Repository](https://github.com/bigjoedata/rockbot)
|
| 12 |
|
| 13 |
+
[GPT-2 124M version Model page on Hugging Face](https://huggingface.co/bigjoedata/rockbot)
|
| 14 |
+
|
| 15 |
+
[DistilGPT2 version Model page on Hugging Face](https://huggingface.co/bigjoedata/rockbot-distilgpt2/) This is leaner but the lyrics are much more simplistic.
|
| 16 |
|
| 17 |
πΉ πͺ π· πΊ πͺ πͺ π»
|
| 18 |
## Background
|
| 19 |
+
With the shutdown of [Google Play Music](https://en.wikipedia.org/wiki/Google_Play_Music) I used Google's takeout function to gather the metadata from artists I've listened to over the past several years. I wanted to take advantage of this bounty to build something fun. I scraped the top 50 lyrics for artists I'd listened to at least once from [Genius](https://genius.com/), then fine tuned [GPT-2's](https://openai.com/blog/better-language-models/) 124M token model using the [AITextGen](https://github.com/minimaxir/aitextgen) framework after considerable post-processing. For more on generation, see [here.](https://huggingface.co/blog/how-to-generate)
|
| 20 |
|
| 21 |
### Full Tech Stack
|
| 22 |
[Google Play Music](https://en.wikipedia.org/wiki/Google_Play_Music) (R.I.P.).
|