Instructions to use huggingtweets/alampaydavis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/alampaydavis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/alampaydavis")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/alampaydavis") model = AutoModelForCausalLM.from_pretrained("huggingtweets/alampaydavis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/alampaydavis with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/alampaydavis" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/alampaydavis", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/alampaydavis
- SGLang
How to use huggingtweets/alampaydavis 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/alampaydavis" \ --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/alampaydavis", "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/alampaydavis" \ --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/alampaydavis", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/alampaydavis with Docker Model Runner:
docker model run hf.co/huggingtweets/alampaydavis
Commit History
-
Update model preview
9f67850 -
Update model preview
437d612 -
Update model preview
bd3aac0 -
Update model preview
e33c4bc -
Update model preview
77707c8 -
Update model preview
9fa8031 -
Update model preview
77e590c -
Update model preview
bb1da8c -
Update model preview
4f4921d -
Update model preview
6af0be7 -
Update model preview
d013166 -
Update model preview
84056f9 -
Update model preview
6215305 -
Update model preview
301e869 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1ub62hd1
b270bd0
-
upload flax model
d978ed1 -
allow flax
c4c7d84
-
Update model preview
d2e266e -
Update model preview
3a5dfcd -
Update model preview
14c9f94 -
Update model preview
2cc5085 -
Update model preview
80c9a5e -
Update model preview
8785501 -
Update model preview
04b6f9a -
Update model preview
a7a92b4 -
Update model preview
eff8665 -
New model from https://wandb.ai/wandb/huggingtweets/runs/a78qgyc1
ea6ee88
-
New model from https://wandb.ai/wandb/huggingtweets/runs/3fa363rj
ea31c75 -
Update model preview
c454e3d -
Update model preview
48aa490 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1ofvot86
d6e3092 -
Update model preview
a174c21 -
Update model preview
4bcbf4d -
New model from https://wandb.ai/wandb/huggingtweets/runs/xl0xi3ey
8a1ed5a -
Update model preview
5e7e2ff -
Update model preview
2a428f7 -
Update model preview
53a75c6 -
Update model preview
3ca20db -
Update model preview
b52599d -
Update model preview
1f781ed -
Update model preview
f0fc855 -
Update model preview
be92100 -
Update model preview
c846f9a -
Update model preview
8fb820d -
New model from https://wandb.ai/wandb/huggingtweets/runs/3321lfil
7e36d85 -
Update model preview
0526b63 -
Update model preview
d694855 -
Update model preview
37116da -
Update model preview
9f2b166 -
Update model preview
5caf40b