Instructions to use huggingtweets/stephenking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/stephenking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/stephenking")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/stephenking") model = AutoModelForCausalLM.from_pretrained("huggingtweets/stephenking", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/stephenking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/stephenking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/stephenking", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/stephenking
- SGLang
How to use huggingtweets/stephenking 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/stephenking" \ --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/stephenking", "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/stephenking" \ --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/stephenking", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/stephenking with Docker Model Runner:
docker model run hf.co/huggingtweets/stephenking
Commit History
-
Update model preview
0aafb74 -
New model from https://wandb.ai/wandb/huggingtweets/runs/llolipvn
991187e -
New model from https://wandb.ai/wandb/huggingtweets/runs/1bemx6gm
26bf488
-
Update model preview
8e34e1a -
Update model preview
563343a -
New model from https://wandb.ai/wandb/huggingtweets/runs/211bgrri
deec9f1
-
upload flax model
fa0f29a -
allow flax
716b542
-
Update model preview
9191b5d -
New model from https://wandb.ai/wandb/huggingtweets/runs/3nxbm83r
7785fd4
-
Update README.md
ec4867a -
Update vocab.json
37d87a2 -
Update pytorch_model.bin
2f37cdc -
Update merges.txt
7784c92 -
Update config.json
3c658d4 -
Update README.md
5b94e49 -
Update special_tokens_map.json
af305e3 -
Update tokenizer_config.json
6869f58 -
initial commit
d9c480b