areneau commited on
Commit
8b2e5fd
·
verified ·
1 Parent(s): fde727a

Add SGLang cookbook and launch command to model card

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -91,6 +91,32 @@ for question, question_logits in zip(encoded.questions, logits):
91
  print(question.question_id, dict(zip(question.option_ids, probabilities)))
92
  ```
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  ### Jev / SystemOne API
95
 
96
  `systemone` takes a Jev/SystemOne `POST /v1/systemone` request body and returns the same response
 
91
  print(question.question_id, dict(zip(question.option_ids, probabilities)))
92
  ```
93
 
94
+ ### SGLang
95
+
96
+ Clef-Flash can be served with SGLang. See the [SGLang cookbook](https://docs.sglang.io/cookbook/autoregressive/Cloudflare/clef#hw=h200&variant=flash&quant=bf16&strategy=balanced&nodes=single) for
97
+ launch commands on H200, B200, and B300. On a single H200:
98
+
99
+ ```bash
100
+ docker run --gpus all \
101
+ --shm-size 32g \
102
+ -p 30000:30000 \
103
+ -v ~/.cache/huggingface:/root/.cache/huggingface \
104
+ --ipc=host \
105
+ lmsysorg/sglang:dev-clef \
106
+ sglang serve \
107
+ --model-path Cloudflare/clef-flash \
108
+ --host 0.0.0.0 \
109
+ --port 30000
110
+ ```
111
+
112
+ The server answers Jev/SystemOne requests at `/v1/systemone`:
113
+
114
+ ```bash
115
+ curl http://localhost:30000/v1/systemone \
116
+ -H 'Content-Type: application/json' \
117
+ -d '{"model":"Cloudflare/clef-flash","state":"My Stripe integration keeps failing. Please help ASAP.","questions":{"urgency":{"type":"noul","instructions":"Does this message express urgency?"}}}'
118
+ ```
119
+
120
  ### Jev / SystemOne API
121
 
122
  `systemone` takes a Jev/SystemOne `POST /v1/systemone` request body and returns the same response