Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add converter for Hugging Face peft (LoRA)

Abierto
#204 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
huggingface, python

Línea de trabajo

Start from the existing ExternalStateDictCheckpointHandler machinery the issue points to, and from the GPT converter it would extend. Read how current external converters import and export configs and weights, then add a PEFT adapter converter. Done means an exported LoRA adapter loads with PeftModel.from_pretrained and imports back. The issue does not name exact files, so confirm the converter layout first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

🎯 Goal (What & Why)

Follow-up to #149, #180. We want to allow converting to/from Hugging Face PEFT adapter format, i.e. so exported LoRA weights can be used with PeftModel.from_pretrained (https://huggingface.co/docs/peft/en/tutorial/peft_model_config#peft-models). Example: https://huggingface.co/ybelkada/opt-350m-lora/tree/main.

🚀 Execution Plan

Step 1: What is the smallest working version?
  • Add a PEFT external converter type that can import/export adapter config and weights. The format is different enough from Huggingface that it can't use the same base class, but we may still be able to reuse the ExternalStateDictCheckpointHandler machinery.
  • Add a specialized converter for GPT LoRA.
Step 2: What additional optimizations are possible (but optional)?

Allow converting both the pretrained model and the adapter.

📌 Acceptance Criteria (Must-Haves for Completion)

  • Things work as described above

🛠️ Project Management

  • Assign the project to the Fast-LLM project.
  • Set the Estimate field (in days) in the GitHub project.
  • Use the Size field to categorize the PR size (Small/Medium/Large).
  • Assign an owner when opening the issue.
Lenguaje dominante
Python
Estrellas
337
Forks
52
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ServiceNow/Fast-LLM

Todos los issues de ServiceNow/Fast-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.