Instructions to use huggingtweets/corpsecrusader with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/corpsecrusader with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/corpsecrusader")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/corpsecrusader") model = AutoModelForCausalLM.from_pretrained("huggingtweets/corpsecrusader", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/corpsecrusader with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/corpsecrusader" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/corpsecrusader", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/corpsecrusader
- SGLang
How to use huggingtweets/corpsecrusader 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/corpsecrusader" \ --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/corpsecrusader", "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/corpsecrusader" \ --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/corpsecrusader", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/corpsecrusader with Docker Model Runner:
docker model run hf.co/huggingtweets/corpsecrusader
Commit History
-
Update model preview
9d95e46 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1ecpg08j
a67d7d8
-
Update model preview
080bfe8 -
New model from https://wandb.ai/wandb/huggingtweets/runs/dndzam80
61ac98c
-
Update model preview
1ffda5c -
New model from https://wandb.ai/wandb/huggingtweets/runs/4dlad5uc
ea90d63
-
Update model preview
d9e7a0e -
New model from https://wandb.ai/wandb/huggingtweets/runs/14w6ebxs
489832c
-
Update model preview
d511784 -
New model from https://wandb.ai/wandb/huggingtweets/runs/5ayy8gxt
0c6f978 -
Update model preview
1ee6ff1 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1ae7qi8m
ec9f6a6
-
Update model preview
4cd0f09 -
Update model preview
a1a2ff7 -
Update model preview
8997879 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3ckj7lek
7d42508 -
Update model preview
2112e00 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3l1qf196
5cb0099
-
Update model preview
c737888 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3v2x5wtg
fba14be -
New model from https://wandb.ai/wandb/huggingtweets/runs/13yfhhuk
1b9bfbf
-
Update model preview
9b268d6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2bikr75k
20dc74b -
Update model preview
37e0779 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2iehwnz1
3497bfc -
Update model preview
fc259e8 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2931fy8z
6c45327 -
initial commit
8d75448