--- license: apache-2.0 pipeline_tag: text-generation tags: - chat - llm - safetensors base_model: Qwen/Qwen3-8B language: - en --- # ParetoPilot ## Model Details - **Finetuned from model:** `Qwen/Qwen3-8B` - **Model source paper:** ParetoPilot: Global Optimization Reasoning on HLS Design Space Exploration with LLMs - **Project repository:** [GEAR-SEU/ParetoPilot-DAC-26](https://github.com/GEAR-SEU/ParetoPilot-DAC-26) ## Description **ParetoPilot** is designed for High-Level Synthesis (HLS) Design Space Exploration (DSE). It analyzes HLS-C code and given pragma parameters to automatically generate optimized configurations (array partitioning, loop pipelining, and unrolling). The model focuses on global optimization reasoning, providing diverse combinations to balance performance, hardware resource utilization, and PPA (Power, Performance, Area) trade-offs. ## Quickstart ### Prerequisites ```bash pip install transformers torch accelerate ``` ### Example Here is a simple example of how to format your prompt and generate debugging instructions for buggy HLS code: ````python from transformers import AutoModelForCausalLM, AutoTokenizer import torch model_name = "XXXiong/ParetoPilot" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForCausalLM.from_pretrained( model_name, torch_dtype=torch.bfloat16, device_map="auto" ) hls_code = """ #include #include #define TYPE double #define row_size 64 #define col_size 64 #define N row_size*col_size #define MIN 0. #define MAX 1.0 #define MAX_ITERATION 1 void gemm( TYPE m1[N], TYPE m2[N], TYPE prod[N] ){ int i, j, k; int k_col, i_col; TYPE mult; outer:for(i=0;i