Instructions to use huggingtweets/combatfemme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/combatfemme with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/combatfemme")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/combatfemme") model = AutoModelForCausalLM.from_pretrained("huggingtweets/combatfemme", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/combatfemme with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/combatfemme" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/combatfemme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/combatfemme
- SGLang
How to use huggingtweets/combatfemme 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/combatfemme" \ --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/combatfemme", "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/combatfemme" \ --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/combatfemme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/combatfemme with Docker Model Runner:
docker model run hf.co/huggingtweets/combatfemme
Commit History
-
upload flax model
2b32941 -
allow flax
6bd12c4
-
Update model preview
5c2625f -
Update model preview
a7d800b -
Update model preview
e465498 -
Update model preview
6c43465 -
Update model preview
317b98d -
New model from https://wandb.ai/wandb/huggingtweets/runs/2o836lhn
619cb82 -
Update model preview
2bf58bf -
Update model preview
e1f9e00 -
Update model preview
7179d4b -
Update model preview
a5056e2 -
Update model preview
5cc583e -
Update model preview
20afbf6 -
Update model preview
a9209f3 -
Update model preview
4dc91ed -
New model from https://wandb.ai/wandb/huggingtweets/runs/1djgewya
b23223f -
Update model preview
880db7a -
Update model preview
756d17b -
Update model preview
4133a7c -
Update model preview
63866a8 -
Update model preview
f74e7ab -
Update model preview
55b8d63 -
Update model preview
14853b4 -
Update model preview
2c03fc6 -
Update model preview
6abc072 -
Update model preview
95b5f49 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1651rl4l
08d2016 -
Update model preview
10251b8 -
Update model preview
442ec6e -
New model from https://wandb.ai/wandb/huggingtweets/runs/22l10355
3efc99d -
initial commit
14ee32d