lm-sys/FastChat
Voir sur GitHubpresence_penalty and repetition_penalty in completions endpoint
Open
#1 914 ouverte le 10 juil. 2023
1 commentaire (1 commentaire)0 réactions (0 réactions)0 assignés (0 assignés)Python38 959 stars (38 959 stars)4 736 forks (4 736 forks)batch import
good first issue
Description
Are there plans to add presence_penalty and repetition_penalty to the OpenAI Completions endpoint?
Guide contributeur
- Stack technique
- pythonrest api
- Domaine
- backendapi
- Type d'issue
- feature
- DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
- 3
- Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
- 1-3 hours
- Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
- fresh
- ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
- clear
- Prérequis
- Familiarity with FastChat codebaseUnderstanding of OpenAI API parameters
- Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
- 60
- Direction de recherche
- Start by examining the current implementation of the completions endpoint in FastChat. Look for how existing parameters like temperature are parsed and passed to the underlying model. The `presence penalty` and `repetition penalty` are standard OpenAI API parameters that control output diversity. Check if the OpenAI wrapper used in FastChat already supports these parameters or if they need to be added. Examine the relevant files in the `fastchat/serve` directory, particularly the model worker and controller. Ensure that the new parameters are added to the request schema and passed through to the model call. The issue has only one comment from a maintainer (if any), so no additional clarification is needed, but it may be worth asking if the parameters should be implemented at the API level or if they are already available but undocumented.