Files
markbaseengine/Package.swift
T
MarkBase Admin 8a66b9086a
CI / build (push) Waiting to run
CI / unit-tests (push) Blocked by required conditions
CI / lint (push) Blocked by required conditions
v2: Initial clean branch with unit tests + CI/CD pipeline
- 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
2026-07-05 13:29:25 +08:00

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"]
),
]
)