8a66b9086a
- Started from ac75faa (initial E4B-MarkBase integration)
- Kept Sources/ (all engine code) + Package.swift + .gitignore
- Removed all ad-hoc tests, documentation, scripts, Python files
- Added Tests/00_Unit/ (MathTest, TokenizerTest, SamplerTest)
- Added .gitea/workflows/ci.yaml (build + unit tests + lint)
- Added Scripts/check_resources.sh (memory-aware test runner)
- Added Tests/Manifest.json (resource requirements for all tests)
- Focus: 4-bit quantized models only
51 lines
1.6 KiB
Swift
51 lines
1.6 KiB
Swift
// swift-tools-version: 6.0
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "MarkBase",
|
|
platforms: [.macOS(.v15)],
|
|
products: [
|
|
.library(name: "MarkBase", targets: ["MarkBase"]),
|
|
.executable(name: "MarkBaseServer", targets: ["MarkBaseServer"]),
|
|
.executable(name: "CLITest", targets: ["CLITest"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
|
|
.package(path: "/Users/accusys/coder/poc/rdma"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "MarkBase",
|
|
exclude: ["Metal/MetalKernels.metal", "Metal/OptimizedKernels.metal", "Metal/FusionKernels.metal", "Metal/MetalKernels.metallib", "Metal/metallib"],
|
|
linkerSettings: [
|
|
.linkedFramework("Metal"),
|
|
.linkedFramework("Foundation"),
|
|
]
|
|
),
|
|
.executableTarget(
|
|
name: "MarkBaseServer",
|
|
dependencies: [
|
|
"MarkBase",
|
|
.product(name: "Hummingbird", package: "hummingbird"),
|
|
.product(name: "RDMAKit", package: "rdma"),
|
|
],
|
|
linkerSettings: [
|
|
.linkedFramework("Metal"),
|
|
.linkedFramework("Foundation"),
|
|
]
|
|
),
|
|
.executableTarget(
|
|
name: "CLITest",
|
|
dependencies: ["MarkBase"],
|
|
linkerSettings: [
|
|
.linkedFramework("Metal"),
|
|
.linkedFramework("Foundation"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "MarkBaseTests",
|
|
dependencies: ["MarkBase"]
|
|
),
|
|
]
|
|
)
|