Instructions to use llmware/slim-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="llmware/slim-sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("llmware/slim-sentiment") model = AutoModelForCausalLM.from_pretrained("llmware/slim-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use llmware/slim-sentiment with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "llmware/slim-sentiment" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "llmware/slim-sentiment", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/llmware/slim-sentiment
- SGLang
How to use llmware/slim-sentiment 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 "llmware/slim-sentiment" \ --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": "llmware/slim-sentiment", "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 "llmware/slim-sentiment" \ --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": "llmware/slim-sentiment", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use llmware/slim-sentiment with Docker Model Runner:
docker model run hf.co/llmware/slim-sentiment
Commit History
-
Update config.json
Verified signature4a918a3
-
Update README.md
Verified signature2166a5e -
Update README.md
Verified signature2d443a3
-
Update README.md
Verified signature890b0c6 -
Update README.md
Verified signature8e6321f -
Update README.md
Verified signature54d0fcd -
Update README.md
Verified signatureb494eda -
Update README.md
Verified signature1a10401 -
Update README.md
Verified signature2291d24 -
Update README.md
Verified signature44fa5e7 -
Update README.md
Verified signature5ae662e -
Update README.md
Verified signature16811d7 -
Update README.md
Verified signature7d6b92f -
Update README.md
Verified signature8d1c670 -
Update README.md
Verified signaturec1d6128 -
Update README.md
Verified signaturee87cd3e -
Update README.md
Verified signature94f2c8e -
Update README.md
Verified signaturec73aac2 -
Update README.md
Verified signature5c2bd2e -
Update README.md
Verified signature9e4c66d -
Update README.md
Verified signature085c075 -
Update README.md
Verified signatured83a7d9 -
Update README.md
Verified signature54c2b3e
-
Update config.json
Verified signature02dd038
-
Update README.md
Verified signaturee2fac82 -
Update README.md
Verified signature9c87204 -
Update README.md
Verified signature2c8b194 -
Update README.md
Verified signature2a2923d -
Update README.md
Verified signature1d4191b -
Upload README.md
Verified signature0a3c027
-
Upload pytorch_model.bin
Verified signatured2cc691 -
Upload 6 files
Verified signature6e3c94c -
initial commit
Verified signaturee96632f