Instructions to use huggingtweets/strife212 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/strife212 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/strife212")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/strife212") model = AutoModelForCausalLM.from_pretrained("huggingtweets/strife212", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/strife212 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/strife212" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/strife212", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/strife212
- SGLang
How to use huggingtweets/strife212 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/strife212" \ --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/strife212", "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/strife212" \ --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/strife212", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/strife212 with Docker Model Runner:
docker model run hf.co/huggingtweets/strife212
Commit History
-
upload flax model
fed6b65 -
allow flax
988da62
-
New model from https://wandb.ai/wandb/huggingtweets/runs/nh0ek96v
dcabac1 -
New model from https://wandb.ai/wandb/huggingtweets/runs/28utgp2g
79b4e35 -
Update model preview
48a828f -
Update model preview
2822c5a -
Update model preview
7e6e216 -
Update model preview
5b5dc1d -
Update model preview
474716a -
Update model preview
69182cc -
Update model preview
18f1e61 -
Update model preview
a814207 -
Update model preview
710c314 -
Update model preview
91eb1a3 -
New model from https://wandb.ai/wandb/huggingtweets/runs/153ssf7i
1b3a12d
-
Update model preview
9e27dbb -
Update model preview
38c2af1 -
Update model preview
1ab847f -
Update model preview
b3f817d -
Update model preview
6b89a18 -
Update model preview
cbd1eb4 -
Update model preview
c9188f7 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1g316wyf
8204943 -
Update model preview
04539e1 -
Update model preview
dfcb2a9 -
Update model preview
6ec0e7b -
Update model preview
3f9a470 -
Update model preview
8217f65 -
Update model preview
b5e1147 -
Update model preview
903e878 -
Update model preview
c8566ec -
Update model preview
bbfdee3 -
Update model preview
0ac7642 -
Update model preview
6401337 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1abwszuq
512ac04 -
initial commit
b2c7865