You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create an inference client that uses only the inference key, without client credentials
11
+
inference_client=InferenceClient(
12
+
inference_key=DATACRUNCH_INFERENCE_KEY,
13
+
endpoint_base_url=DATACRUNCH_ENDPOINT_BASE_URL
14
+
)
15
+
16
+
# Make an asynchronous request to the endpoint
17
+
# This example demonstrates calling a SGLang deployment which serves LLMs using an OpenAI-compatible API format
18
+
data= {
19
+
"model": "deepseek-ai/deepseek-llm-7b-chat",
20
+
"prompt": "Is consciousness fundamentally computational, or is there something more to subjective experience that cannot be reduced to information processing?",
21
+
"max_tokens": 128,
22
+
"temperature": 0.7,
23
+
"top_p": 0.9
24
+
}
25
+
26
+
# Run the request asynchronously using the inference client
0 commit comments