gguf integration does not track create_chat_completion or create_completion
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- devtools, machine-learning, python
- Domaine
- ai, observability
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Python
- Étoiles
- 17
- Forks
- 1
- Merge moyen
- 17 h 5 min
- PR mergées (30 j)
- 34
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de wild-edge/wildedge-python
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
wild-edge/wildedge-python#85 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
wild-edge/wildedge-python#78 ·
Les mainteneurs répondent en général sous 1 jour
-
vLLM integrationPeut-être à nouveau libre @piotrekno1 l’a pris il y a 123 jours, et aucune pull request n’est ouverte. Ouverte
wild-edge/wildedge-python#38 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue help wanted
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
wild-edge/wildedge-python#25 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue help wanted
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
wild-edge/wildedge-python#22 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de wild-edge/wildedge-python
Issues similaires
-
push_gh-pages fails on master branch on forksPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertegood first issue infrastructure
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
kuznia-rdzeni/coreblocks#1135 ·
-
good first issue server
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
documentation priority: high
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
a-lex-s/mealie-telegram-bot#54 ·
Les mainteneurs répondent en général sous 1 jour
-
type/test
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
SaltedTan/virgil-language-server#218 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
btclib-org/btclib-wallet#541 ·
Les mainteneurs répondent en général sous 1 jour