From 58e362df20ce9ade14b9327166163e0bdb2e3b44 Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Mon, 17 Aug 2026 17:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: Elinnos/elinnos-sv-v7-ahb-GGUF Source: Original Platform --- .gitattributes | 38 ++++++++++++++++++ Modelfile | 25 ++++++++++++ README.md | 75 +++++++++++++++++++++++++++++++++++ elinnos-sv-v7-ahb-Q4_K_M.gguf | 3 ++ elinnos-sv-v7-ahb-Q8_0.gguf | 3 ++ elinnos-sv-v7-ahb-f16.gguf | 3 ++ 6 files changed, 147 insertions(+) create mode 100644 .gitattributes create mode 100644 Modelfile create mode 100644 README.md create mode 100644 elinnos-sv-v7-ahb-Q4_K_M.gguf create mode 100644 elinnos-sv-v7-ahb-Q8_0.gguf create mode 100644 elinnos-sv-v7-ahb-f16.gguf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ec99716 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,38 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +elinnos-sv-v7-ahb-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text +elinnos-sv-v7-ahb-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text +elinnos-sv-v7-ahb-f16.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/Modelfile b/Modelfile new file mode 100644 index 0000000..035b2c9 --- /dev/null +++ b/Modelfile @@ -0,0 +1,25 @@ +FROM ./elinnos-sv-v7-ahb-Q4_K_M.gguf + +SYSTEM """You are Elinnos, a hardware design, verification, and reasoning assistant specialising in SystemVerilog, Pulse HDL, AMBA AHB protocol, and xrun-based simulation workflows. + +You perform the following core tasks: + +1) Bidirectional translation - between Verilog/SystemVerilog/Pulse HDL testbench code and Pulse HDL console logs. +2) Pulse HDL tool debugging - diagnosing errors and warnings, identifying root causes, and returning structured JSON debug reports with keys: issue_type, root_cause, fix_steps, commands, verification, reasoning, confidence. +3) SystemVerilog simulation output prediction - given a SystemVerilog testbench, predict the exact xrun simulation output including all pass/fail results, $display messages, and final summary. +4) SystemVerilog code generation - producing correct, complete, and production-ready SystemVerilog/Verilog code following IEEE 1800-2017 and IEEE 1364 standards. Generated code is self-contained with all necessary declarations and includes self-checking assertions with clear PASS/FAIL indicators. +5) Pulse HDL bug repair - given a buggy HDL code snippet and its Pulse simulator error log, produce the corrected code that compiles and simulates successfully. +6) xrun bug repair - given a buggy SystemVerilog/Verilog code snippet and its xrun simulator error log, produce the corrected code that compiles and simulates successfully. +7) Native tool-calling - when actions are required (file read/write, git operations, design tool invocations), issue structured tool calls with the correct function name and arguments; chain multiple tool calls as needed to complete multi-step workflows. +8) AMBA AHB protocol expertise - bus matrix generation, RTL design, debug, verification, and design reasoning for AMBA AHB (AMBA 2.0 / AHB-Lite). Covers topology planning, arbitration selection, address map layout, signal routing (HBURST, HSIZE, HPROT, HMASTLOCK), pipeline stage design, testbench generation, SVA assertions, and UVM skeletons. + +OUTPUT MODE PER TASK: +- Tasks 1-7 (translation, Pulse debug, sim prediction, SV codegen, Pulse bugfix, xrun bugfix, tool-calling): DIRECT MODE. Return exact structured output only. No tags. No commentary. No explanation unless explicitly requested. Preserve formatting exactly. +- Task 8 (AHB protocol): MANDATORY THINKING. Always reason step-by-step inside ... before your final response. Cover relevant design decisions, edge cases, and trade-offs. Then provide the complete answer (RTL, verification code, debug fix, or structured analysis).""" + +PARAMETER temperature 0 +PARAMETER top_p 0.9 +PARAMETER num_ctx 8192 +PARAMETER num_predict 2048 +PARAMETER stop "<|im_end|>" +PARAMETER stop "" diff --git a/README.md b/README.md new file mode 100644 index 0000000..3482dff --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +--- +library_name: gguf +base_model: Elinnos/elinnos-sv-v7-ahb-merged +tags: + - qwen2 + - gguf + - quantized + - hardware-design + - systemverilog + - amba-ahb + - vlsi + - rtl +license: apache-2.0 +language: + - en +pipeline_tag: text-generation +--- + +# ELINNOS SV-v7-AHB — GGUF Quantized + +GGUF quantized versions of [`Elinnos/elinnos-sv-v7-ahb-merged`](https://huggingface.co/Elinnos/elinnos-sv-v7-ahb-merged), the merged ELINNOS SV-v7-AHB model fine-tuned on AMBA AHB hardware design tasks. + +## Available Quantizations + +| File | Size | Quant | Description | +|---|---|---|---| +| `elinnos-sv-v7-ahb-Q4_K_M.gguf` | ~4.4 GB | Q4_K_M | **Recommended** — best quality/size trade-off | +| `elinnos-sv-v7-ahb-Q8_0.gguf` | ~7.6 GB | Q8_0 | Near-lossless, use if VRAM allows | +| `elinnos-sv-v7-ahb-f16.gguf` | ~15 GB | F16 | Full precision reference | + +## Quick Start (Ollama) + +```bash +ollama run pkelinnos/elinnos-sv-v7-ahb +``` + +## Quick Start (llama.cpp) + +```bash +./llama-cli -m elinnos-sv-v7-ahb-Q4_K_M.gguf \ + --ctx-size 8192 \ + --temp 0 \ + -p "Design an AHB-Lite slave with 4 read/write registers." +``` + +## Quick Start (Python — llama-cpp-python) + +```python +from llama_cpp import Llama + +llm = Llama( + model_path="elinnos-sv-v7-ahb-Q4_K_M.gguf", + n_ctx=8192, + n_gpu_layers=-1, +) +output = llm.create_chat_completion( + messages=[ + {"role": "system", "content": "You are Elinnos, a hardware design assistant..."}, + {"role": "user", "content": "Design an AHB bus matrix for 2 masters and 3 slaves."}, + ], + temperature=0, + max_tokens=2048, +) +print(output["choices"][0]["message"]["content"]) +``` + +## Model Details + +See the full model card at [`Elinnos/elinnos-sv-v7-ahb`](https://huggingface.co/Elinnos/elinnos-sv-v7-ahb). + +- **Base**: Qwen2.5-7B-Instruct +- **Adapter chain**: v3 → v4 → v5 → v6 → v7 (merged) +- **LoRA**: r=96, α=192, target: q/k/v/o/gate/up/down proj +- **Training**: 4 epochs, best eval_loss=0.5408 +- **Conversion**: llama.cpp `convert_hf_to_gguf.py` + `llama-quantize` diff --git a/elinnos-sv-v7-ahb-Q4_K_M.gguf b/elinnos-sv-v7-ahb-Q4_K_M.gguf new file mode 100644 index 0000000..24e9ef8 --- /dev/null +++ b/elinnos-sv-v7-ahb-Q4_K_M.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93d110ce98203fe9af2e883ce34980f08b695acaffe98d03c99e674fae53f357 +size 4683073440 diff --git a/elinnos-sv-v7-ahb-Q8_0.gguf b/elinnos-sv-v7-ahb-Q8_0.gguf new file mode 100644 index 0000000..b745518 --- /dev/null +++ b/elinnos-sv-v7-ahb-Q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e33527b10ac386003bbce36f45628e721ec021b549e6583b84fdcfeb973d7d2 +size 8098525088 diff --git a/elinnos-sv-v7-ahb-f16.gguf b/elinnos-sv-v7-ahb-f16.gguf new file mode 100644 index 0000000..76bf98e --- /dev/null +++ b/elinnos-sv-v7-ahb-f16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54369913d081e4684875d30b71e6920aae466d42c7d160213c85aa9517e61eb5 +size 15237853088