Feature Extraction
Transformers
Safetensors
lemondecider_decision
decision-model
typed-decisions
multimodal
custom_code
Instructions to use inclusionAI/LemonDecider with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/LemonDecider with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="inclusionAI/LemonDecider", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inclusionAI/LemonDecider", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update code/serve.sh
Browse files
serve.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
HERE="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
ROOT="$(cd "$HERE/.." && pwd)"
|
| 5 |
+
export AIS_SERVER_CPU_THREADS="${AIS_SERVER_CPU_THREADS:-4}"
|
| 6 |
+
export AIS_SERVER_BATCH_SIZE=1
|
| 7 |
+
exec "${PYTHON:-python3}" "$HERE/serve_312k.py" --checkpoint "${CHECKPOINT:-$ROOT}" --device "${DEVICE:-cuda:0}" --host 127.0.0.1 --port "${PORT:-8000}"
|