gguf integration does not track create_chat_completion or create_completion
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 72/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- devtools, machine-learning, python
- Bereich
- ai, observability
Rechercherichtung
Start with the existing GGUF instrumentation around Llama.__call__, then inspect create_completion and create_chat_completion behavior in the llama-cpp-python integration. Trace streaming and non-streaming result objects to verify usage, finish reasons, generation configuration, chat metadata, and attachment handling. Add or update integration tests so each entry point is tracked once and __call__ does not double-count.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What happens
The gguf integration only tracks Llama.__call__. Llama.create_chat_completion is not tracked: llama-cpp-python's chat handlers call llama.create_completion(...) directly (llama_chat_format.py), so they never go through the patched __call__. create_completion called directly is missed too.
Chat completion is the usual way to run an instruct model, so an app using it gets the model load event and nothing else. It has to register the model with auto_instrument=False and build track_inference itself: TextInputMeta, GenerationOutputMeta from usage and finish_reason, and GenerationConfig from the call's keyword arguments.
Expected
Track create_completion and create_chat_completion (streaming and non-streaming), once per call:
- tokens in and out, tokens per second and stop reason from the result's
usageandchoices[0].finish_reason GenerationConfigfromtemperature,top_p,max_tokensandrepeat_penaltyTextInputMetawithprompt_type="chat"and the number of user turns, for chat calls- when attachments are enabled, the messages as input and the reply as output
__call__ delegates to create_completion, so patching create_completion would cover all three without double counting.
Found in evil-jarvis, which tracks this by hand today (src/evil_jarvis/telemetry.py, track_generation). SDK 0.2.2, llama-cpp-python 0.3.x.
🤖 Generated with Claude Code
- Vorherrschende Sprache
- Python
- Sterne
- 17
- Forks
- 1
- Ø Merge
- 17 Std. 5 Min.
- Gemergte PRs (30 T.)
- 34
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus wild-edge/wildedge-python
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
wild-edge/wildedge-python#85 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
wild-edge/wildedge-python#78 ·
Maintainer antworten meist innerhalb von 1 Tag
-
vLLM integrationEvtl. wieder frei @piotrekno1 hat das vor 123 Tagen übernommen, und es ist kein Pull Request offen. Offen
wild-edge/wildedge-python#38 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue help wanted
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
wild-edge/wildedge-python#25 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue help wanted
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
wild-edge/wildedge-python#22 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in wild-edge/wildedge-python
Ähnliche Issues
-
push_gh-pages fails on master branch on forksEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offengood first issue infrastructure
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
kuznia-rdzeni/coreblocks#1135 ·
-
good first issue server
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation priority: high
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
a-lex-s/mealie-telegram-bot#54 ·
Maintainer antworten meist innerhalb von 1 Tag
-
type/test
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
SaltedTan/virgil-language-server#218 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
btclib-org/btclib-wallet#541 ·
Maintainer antworten meist innerhalb von 1 Tag