Run this model with HF Jobs
Run huggingtweets/philosophy_mark 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/huggingtweets/philosophy_mark. 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/huggingtweets/philosophy_mark 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/huggingtweets/philosophy_mark. 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/huggingtweets/philosophy_mark. 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 huggingtweets/philosophy_mark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/philosophy_mark with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/philosophy_mark")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/philosophy_mark") model = AutoModelForCausalLM.from_pretrained("huggingtweets/philosophy_mark", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/philosophy_mark with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/philosophy_mark" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/philosophy_mark", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/philosophy_mark
- SGLang
How to use huggingtweets/philosophy_mark 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 "huggingtweets/philosophy_mark" \ --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": "huggingtweets/philosophy_mark", "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 "huggingtweets/philosophy_mark" \ --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": "huggingtweets/philosophy_mark", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/philosophy_mark with Docker Model Runner:
docker model run hf.co/huggingtweets/philosophy_mark
New model from https://wandb.ai/wandb/huggingtweets/runs/1erhw6qr
Browse filesFiles changed (3)
- README.md+8-8
- pytorch_model.bin+1-1
- training_args.bin+1-1
12345617 unmodified lines242526272829302 unmodified lines33343536373839404142434445464748495051---language: enthumbnail: https://www.huggingtweets.com/philosophy_mark/1616644722583/predictions.pngtags:- huggingtweetswidget:17 unmodified linesTo understand how the model was developed, check the [W&B report](https://app.wandb.ai/wandb/huggingtweets/reports/HuggingTweets-Train-a-model-to-generate-tweets--VmlldzoxMTY5MjI).## Training data2 unmodified lines| Data | Quantity || --- | --- || Tweets downloaded | 3250 || Retweets | 169 || Short tweets | 343 || Tweets kept | 2738 |[Explore the data](https://wandb.ai/wandb/huggingtweets/runs/bd24iq8d/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 @philosophy_mark's tweets.Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/wandb/huggingtweets/runs/3jwokp4r) for full transparency and reproducibility.At the end of training, [the final model](https://wandb.ai/wandb/huggingtweets/runs/3jwokp4r/artifacts) is logged and versioned.## How to use12345617 unmodified lines242526272829302 unmodified lines33343536373839404142434445464748495051---language: enthumbnail: https://github.com/borisdayma/huggingtweets/blob/master/img/logo.png?raw=truetags:- huggingtweetswidget:17 unmodified linesTo understand how the model was developed, check the [W&B report](https://wandb.ai/wandb/huggingtweets/reports/HuggingTweets-Train-a-Model-to-Generate-Tweets--VmlldzoxMTY5MjI).## Training data2 unmodified lines| Data | Quantity || --- | --- || Tweets downloaded | 3250 || Retweets | 171 || Short tweets | 347 || Tweets kept | 2732 |[Explore the data](https://wandb.ai/wandb/huggingtweets/runs/21aq4o19/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 @philosophy_mark's tweets.Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/wandb/huggingtweets/runs/1erhw6qr) for full transparency and reproducibility.At the end of training, [the final model](https://wandb.ai/wandb/huggingtweets/runs/1erhw6qr/artifacts) is logged and versioned.## How to use
123version https://git-lfs.github.com/spec/v1oid sha256:967cd8f546f7d0730a3c264682383f06cdf1753a95aff6bf70034bb0732e632csize 510408315123version https://git-lfs.github.com/spec/v1oid sha256:48ad5c660809147a5f6f19ac4b0a96a3bec2827dbb113ef1316999dd99f1ed54size 510408315
123version https://git-lfs.github.com/spec/v1oid sha256:7ed896f0194da561ecb3002fd54af7798d41584811b0411ea892c52ef250fb43size 2287123version https://git-lfs.github.com/spec/v1oid sha256:05f02716c6dd92cd1b2370cfe3f681a10d296cb236db7f304dfdb6ce33b2ef3bsize 2287
README.md+8-8
pytorch_model.bin+1-1
training_args.bin+1-1