Instructions to use ghdi/imbd-reviews-sample with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ghdi/imbd-reviews-sample with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ghdi/imbd-reviews-sample")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ghdi/imbd-reviews-sample") model = AutoModelForCausalLM.from_pretrained("ghdi/imbd-reviews-sample", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ghdi/imbd-reviews-sample with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ghdi/imbd-reviews-sample" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghdi/imbd-reviews-sample", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ghdi/imbd-reviews-sample
- SGLang
How to use ghdi/imbd-reviews-sample 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 "ghdi/imbd-reviews-sample" \ --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": "ghdi/imbd-reviews-sample", "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 "ghdi/imbd-reviews-sample" \ --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": "ghdi/imbd-reviews-sample", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ghdi/imbd-reviews-sample with Docker Model Runner:
docker model run hf.co/ghdi/imbd-reviews-sample
Commit History
-
Training in progress epoch 19
158503a -
Training in progress epoch 18
aefd385 -
Training in progress epoch 17
ab07a13 -
Training in progress epoch 16
59c9b37 -
Training in progress epoch 15
5da7b3d -
Training in progress epoch 14
7077806 -
Training in progress epoch 13
1c4566c -
Training in progress epoch 12
72eecbc -
Training in progress epoch 11
1f24b86
-
Training in progress epoch 10
b1ca860 -
Training in progress epoch 9
5bc4ee0 -
Training in progress epoch 8
4d3ed13 -
Training in progress epoch 7
8eac4d1 -
Training in progress epoch 6
b9ba36b -
Training in progress epoch 5
ffbe6dd -
Training in progress epoch 4
0bbdf31 -
Training in progress epoch 3
5f745a3 -
Training in progress epoch 2
32e315a -
Training in progress epoch 1
365f2eb -
Training in progress epoch 0
5912d95 -
Training in progress epoch 2
16e5252 -
Training in progress epoch 1
c91c45f -
Training in progress epoch 0
02141ab -
initial commit
b32a45b