Instructions to use huggingtweets/samyamar_ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/samyamar_ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/samyamar_")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/samyamar_") model = AutoModelForCausalLM.from_pretrained("huggingtweets/samyamar_", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/samyamar_ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/samyamar_" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/samyamar_", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/samyamar_
- SGLang
How to use huggingtweets/samyamar_ 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/samyamar_" \ --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/samyamar_", "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/samyamar_" \ --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/samyamar_", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/samyamar_ with Docker Model Runner:
docker model run hf.co/huggingtweets/samyamar_
Commit History
-
upload flax model
f492cc9 -
allow flax
a6938d8
-
Update README.md
26692a9 -
Update README.md
7487465 -
Update README.md
24ebe04 -
Update vocab.json
b9a8b20 -
Update tokenizer_config.json
26f8c8e -
Update README.md
9ccb2a8 -
Update merges.txt
7c0d659 -
Update config.json
4977978 -
Update pytorch_model.bin
4426b76 -
Update special_tokens_map.json
ec4c333 -
Update README.md
5f73bb4 -
Update README.md
d829aac -
Update README.md
8c26724 -
Update README.md
2d3a9d2 -
Update README.md
86eb14f -
Update README.md
678c487 -
Update README.md
db82f0a -
Update README.md
874bbdb -
Update vocab.json
e5b4994 -
Update tokenizer_config.json
c55d7fd -
Update README.md
adbefae -
Update merges.txt
aad505f -
Update config.json
5915625 -
Update special_tokens_map.json
57abacc -
initial commit
039af27