Add features for Qwen2_moe support
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- machine-learning
Línea de trabajo
The issue names no files or tests, so start by locating where the Qwen2 MoE model config and decoder layers are defined in the repository. Add the parameters decoder_sparse_step, moe_intermediate_size, shared_expert_intermediate_size, norm_topk_prob and mlp_only_layers, then use the layer choice to switch between dense MLP and sparse MoE blocks. Done means these options are honored, covered by tests, and documented.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🎯 Goal (What & Why)
The following additional parameters need to be added and their functionality implemented to support Qwen2_moe models:
- decoder_sparse_step (
int, optional, defaults to 1):
The frequency of the MoE layer. - moe_intermediate_size (
int, optional, defaults to 1408):
Intermediate size of the routed expert. - shared_expert_intermediate_size (
int, optional, defaults to 5632):
Intermediate size of the shared expert. - norm_topk_prob (
bool, optional, defaults toFalse):
Whether to normalize the topk probabilities. - mlp_only_layers (
List[int], optional, defaults to[]):
Indicate which layers use dense MLP rather than Sparse Moe blocks
The list contains layer index, from 0 to num_layers-1 if we have num_layers layers
Ifmlp_only_layersis empty,decoder_sparse_stepis used to determine the sparsity.
Additionally add_linear_bias=only_attn_qkv needs to be supported then using MLP MoE blocks.
This is needed for #135
🚀 Execution Plan
**Step 1: Changes in MLP Moe
- Implement custom intermediate sizes for shared and non shared Experts
- add support for norm_topk_prob
**Step 2: Changes in layer architecture
- Implement decoder_sparse_step and mlp_only_layers
📌 Acceptance Criteria (Must-Haves for Completion)
- The feature must be functional and tested.
- The implementation must be documented in practical terms.
- The PR must include a performance/impact summary.
- No refactors unless directly necessary for feature completion.
🛠️ Project Management
- Assign the project to the Fast-LLM project.
- Set the
Estimatefield (in days) in the GitHub project. - Use the
Sizefield 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
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ServiceNow/Fast-LLM
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ServiceNow/Fast-LLM#556 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
ServiceNow/Fast-LLM#538 ·
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
ServiceNow/Fast-LLM#533 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
ServiceNow/Fast-LLM#510 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
ServiceNow/Fast-LLM#507 ·
Todos los issues de ServiceNow/Fast-LLM
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 4 días
-
Add alembic upgrade predeployAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ClockGU/clockwork-backend#169 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
aws-samples/sample-per-model-bedrock#616 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
chnm/teachinghistory-hugo#47 ·
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
pandas-dev/pandas-stubs#2047 · 2 comentarios ·
Los mantenedores suelen responder en 1 día