初始化项目,由ModelHub XC社区提供模型
Model: eamiller34/Qwen2.5-Coder-7B-Swift-Lm Source: Original Platform
This commit is contained in:
37
.gitattributes
vendored
Normal file
37
.gitattributes
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
*.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
|
||||||
|
qwen_swift.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
qwen_swift-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
64
README.md
Normal file
64
README.md
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
---
|
||||||
|
license: other
|
||||||
|
license_name: qwen-license
|
||||||
|
license_link: https://github.com/QwenLM/Qwen/blob/main/LICENSE
|
||||||
|
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
||||||
|
model_creator: erikmiller
|
||||||
|
model_name: Qwen2.5-Coder-7B-Swift-Lm
|
||||||
|
tags:
|
||||||
|
- swift
|
||||||
|
- swift6
|
||||||
|
- ios
|
||||||
|
- macos
|
||||||
|
- code
|
||||||
|
- qwen-2.5
|
||||||
|
- gguf
|
||||||
|
- ollie
|
||||||
|
- clawfi
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
library_name: transformers
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
---
|
||||||
|
|
||||||
|
## Model Summary
|
||||||
|
Qwen2.5-Coder-7B-Swift-Lm is a fine-tuned version of the Qwen2.5-Coder-7B-Instruct model, specifically optimized for high-performance Swift development.
|
||||||
|
|
||||||
|
## Key Features
|
||||||
|
Modern Swift Proficiency: Deeply familiar with Swift 6 Concurrency (Actors, Sendable) and the Observation framework (@Observable).
|
||||||
|
|
||||||
|
Native SDK Knowledge: Fine-tuned to understand the nuances of SwiftUI, AppKit, and Combine.
|
||||||
|
|
||||||
|
Local Performance: Optimized for GGUF format to ensure low-latency inference on Apple Silicon (Metal) via tools like LM Studio.
|
||||||
|
|
||||||
|
## Training Details
|
||||||
|
Dataset: 5,602 high-quality, curated Swift examples.
|
||||||
|
|
||||||
|
Fine-tuning Method: QLoRA (Rank=16, Alpha=32).
|
||||||
|
|
||||||
|
Target Modules: q_proj, v_proj.
|
||||||
|
|
||||||
|
Objective: Improving code generation accuracy and reducing common pitfalls like forced-unwrapping.
|
||||||
|
|
||||||
|
## Training Results
|
||||||
|
|
||||||
|
Final Training Loss: 0.369
|
||||||
|
|
||||||
|
Training Epochs: 1
|
||||||
|
|
||||||
|
Loss Curve: The model showed a steady, controlled descent from an initial loss of 12.45 down to 0.36, indicating successful convergence on the Swift-specific dataset without aggressive overfitting.
|
||||||
|
|
||||||
|
## Usage Instructions
|
||||||
|
LM Studio / GGUF
|
||||||
|
Download the .gguf file from the Files and versions tab.
|
||||||
|
|
||||||
|
In LM Studio, load the model and enable GPU Offload to Max.
|
||||||
|
|
||||||
|
Set your system prompt to: "You are a Senior iOS Architect specializing in clean, safe, and modern Swift code."
|
||||||
|
|
||||||
|
Connecting to Cursor
|
||||||
|
Start the Local Server in LM Studio (default: http://localhost:1234).
|
||||||
|
|
||||||
|
In Cursor Settings, add a custom OpenAI API with the URL http://localhost:1234/v1.
|
||||||
|
|
||||||
|
Select this model to get fine-tuned Swift suggestions directly in your project.
|
||||||
3
qwen_swift-f16.gguf
Normal file
3
qwen_swift-f16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:782d8b930615ca7885a9e5d4265f36b36f7066b60a14cc2274a0fbc334235904
|
||||||
|
size 15237853056
|
||||||
Reference in New Issue
Block a user