You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add local Qwen3-Omni API and fine-tune regression
* swap Qwen3-Omni dataset generation to load Hugging Face checkpoints locally and wire up tests/
docs
* ensure AGENTS.md/CLAUDE.md stay untracked
* add a lightweight GPT-2 fine-tuning test that asserts weights actually change
> See `examples/models/qwen3/qwen3_lora_finetune.py` for a runnable script.
175
193
194
+
8.__Qwen3-Omni dataset generation__ – Run the multimodal checkpoint locally (download from Hugging Face) to bootstrap instruction corpora without leaving your machine.
195
+
```python
196
+
from xturing.datasets import InstructionDataset
197
+
from xturing.model_apis.qwen import Qwen3OmniTextGenerationAPI
198
+
199
+
# Download `Qwen/Qwen2.5-Omni` (or another HF variant) ahead of time
An exploration of the [Llama LoRA INT4 working example](examples/features/int4_finetuning/LLaMA_lora_int4.ipynb) is recommended for an understanding of its application.
177
205
178
206
For an extended insight, consider examining the [GenericModel working example](examples/features/generic/generic_model.py) available in the repository.
@@ -182,9 +210,17 @@ For an extended insight, consider examining the [GenericModel working example](e
-**Configuration**: Training and generation parameters are defined in YAML files per model in `src/xturing/config/`
431
+
-**Engines**: Handle the low-level operations (loading weights, tokenization, DeepSpeed integration)
432
+
-**Models**: Provide high-level API (`finetune()`, `generate()`, `evaluate()`, `save()`, `load()`)
433
+
434
+
<br>
435
+
324
436
## 📝 License
325
437
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
326
438
327
439
<br>
328
440
329
441
## 🌎 Contributing
330
442
As an open source project in a rapidly evolving field, we welcome contributions of all kinds, including new features and better documentation. Please read our [contributing guide](CONTRIBUTING.md) to learn how you can get involved.
443
+
444
+
### Quick Contribution Guidelines
445
+
446
+
**Important:** All pull requests should target the `dev` branch, not `main`.
447
+
448
+
The project uses pre-commit hooks to enforce code quality:
449
+
-**black** - Code formatting
450
+
-**isort** - Import sorting (black profile)
451
+
-**autoflake** - Remove unused imports
452
+
-**absolufy-imports** - Convert relative to absolute imports
453
+
-**gitlint** - Commit message linting
454
+
455
+
You can manually format code:
456
+
```bash
457
+
black src/ tests/
458
+
isort src/ tests/
459
+
```
460
+
461
+
Pre-commit hooks will automatically run these checks when you commit. Make sure to install them:
0 commit comments