scripts
This commit is contained in:
8
scripts/bench-lmstudio.py
Normal file
8
scripts/bench-lmstudio.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import requests
|
||||
import time
|
||||
|
||||
# Benchmark LLM inference
|
||||
response = requests.post("http://localhost:1234/v1/completions", json={
|
||||
"prompt": "Hello, how are you?",
|
||||
"max_tokens": 100
|
||||
})
|
||||
Reference in New Issue
Block a user