Instructions to use huggingtweets/nextlevelbrett with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/nextlevelbrett with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/nextlevelbrett")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/nextlevelbrett") model = AutoModelForCausalLM.from_pretrained("huggingtweets/nextlevelbrett", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/nextlevelbrett with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/nextlevelbrett" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/nextlevelbrett", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/nextlevelbrett
- SGLang
How to use huggingtweets/nextlevelbrett 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/nextlevelbrett" \ --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/nextlevelbrett", "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/nextlevelbrett" \ --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/nextlevelbrett", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/nextlevelbrett with Docker Model Runner:
docker model run hf.co/huggingtweets/nextlevelbrett
Commit History
-
upload flax model
8e92281 -
allow flax
b0a4b43
-
Update README.md
56fd258 -
Update merges.txt
3787511 -
Update vocab.json
d5f7b2a -
Update config.json
8722e38 -
Update special_tokens_map.json
d4a44c2 -
Update tokenizer_config.json
877e518 -
Update README.md
31c2c42 -
Update pytorch_model.bin
4d40211
-
Update README.md
4d8bdc8 -
Update README.md
a52805d -
Update config.json
c90e426 -
Update special_tokens_map.json
89a93f8 -
Update merges.txt
870c2b8 -
Update tokenizer_config.json
0ba2ad2 -
Update vocab.json
850d922
-
Update README.md
e95a1ab -
Update README.md
87cb30b -
Update README.md
b8077d5 -
Update vocab.json
f19dd4b -
Update config.json
cd4acdc -
Update README.md
45e429b -
Update tokenizer_config.json
a199bb4 -
Update merges.txt
aa05ee3 -
Update special_tokens_map.json
f211ad3 -
initial commit
17507a8