初始化项目,由ModelHub XC社区提供模型
Model: raafatabualazm/decompiler-v2 Source: Original Platform
This commit is contained in:
28
README.md
Normal file
28
README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
library_name: transformers
|
||||
pipeline_tag: text-generation
|
||||
base_model: Qwen/Qwen3-4B-Thinking-2507
|
||||
tags:
|
||||
- lora
|
||||
- peft
|
||||
- decompilation
|
||||
- code
|
||||
---
|
||||
|
||||
# decompiler-v2
|
||||
|
||||
This repository contains merged fine‑tuned weights for the base model **Qwen/Qwen3-4B-Thinking-2507**.
|
||||
|
||||
- **Task:** idiomatic decompilation (assembly → high-level code)
|
||||
- **Training:** LoRA/DoRA adapters trained with TRL SFT on custom assembly→Dart/Swift pairs
|
||||
- **How to load (merged):**
|
||||
|
||||
```python
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
|
||||
repo_id = "raafatabualazm/decompiler-v2"
|
||||
tok = AutoTokenizer.from_pretrained(repo_id, use_fast=True)
|
||||
model = AutoModelForCausalLM.from_pretrained(repo_id, torch_dtype="bfloat16", trust_remote_code=True)
|
||||
```
|
||||
|
||||
> Replace the repo id with your own if you fork or rename this repository.
|
||||
Reference in New Issue
Block a user