Run this model with HF Jobs
Run huggingtweets/drsweety303 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/drsweety303. 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/drsweety303 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/drsweety303. 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/drsweety303. 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/drsweety303 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/drsweety303 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/drsweety303")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/drsweety303") model = AutoModelForCausalLM.from_pretrained("huggingtweets/drsweety303", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/drsweety303 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/drsweety303" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/drsweety303", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/drsweety303
- SGLang
How to use huggingtweets/drsweety303 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/drsweety303" \ --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/drsweety303", "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/drsweety303" \ --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/drsweety303", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/drsweety303 with Docker Model Runner:
docker model run hf.co/huggingtweets/drsweety303
New model from https://wandb.ai/wandb/huggingtweets/runs/2j4ijca9
Browse filesFiles changed (3)
- README.md+8-8
- pytorch_model.bin+1-1
- training_args.bin+1-1
12345635 unmodified lines4243444546474849505152535455565758596061---language: enthumbnail: https://www.huggingtweets.com/drsweety303/1627797560752/predictions.pngtags:- huggingtweetswidget:35 unmodified lines| Data | Dr. Roberta Bobby || --- | --- || Tweets downloaded | 3236 || Retweets | 272 || Short tweets | 292 || Tweets kept | 2672 |[Explore the data](https://wandb.ai/wandb/huggingtweets/runs/379uq4q6/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 @drsweety303's tweets.Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/wandb/huggingtweets/runs/10xa50d2) for full transparency and reproducibility.At the end of training, [the final model](https://wandb.ai/wandb/huggingtweets/runs/10xa50d2/artifacts) is logged and versioned.## How to use12345635 unmodified lines4243444546474849505152535455565758596061---language: enthumbnail: https://github.com/borisdayma/huggingtweets/blob/master/img/logo.png?raw=truetags:- huggingtweetswidget:35 unmodified lines| Data | Dr. Roberta Bobby || --- | --- || Tweets downloaded | 3188 || Retweets | 269 || Short tweets | 288 || Tweets kept | 2631 |[Explore the data](https://wandb.ai/wandb/huggingtweets/runs/1jjwnodu/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 @drsweety303's tweets.Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/wandb/huggingtweets/runs/2j4ijca9) for full transparency and reproducibility.At the end of training, [the final model](https://wandb.ai/wandb/huggingtweets/runs/2j4ijca9/artifacts) is logged and versioned.## How to use
123version https://git-lfs.github.com/spec/v1oid sha256:7daf96e3eba3da7e2dfbeecb6e9f7853bf92c5a96920dfc8f472b57fb5895a36size 510403817123version https://git-lfs.github.com/spec/v1oid sha256:48dd4b2b90c31a4cbc0b60a467ede49cd37cd8c7ef722d334659a4aa23b2a8a0size 510403817
123version https://git-lfs.github.com/spec/v1oid sha256:378f3396543d1d7bc4daf09ddbf636fecc23b2114c70e679355f3f3d37005b93size 2671123version https://git-lfs.github.com/spec/v1oid sha256:033f75a1561193959eda9fc260dd8e031b68f9f9546623848a783e22ea97b2dcsize 2671
README.md+8-8
pytorch_model.bin+1-1
training_args.bin+1-1