lattice-inference 0.3.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lattice_inference-0.3.0a1/.gitignore +15 -0
- lattice_inference-0.3.0a1/CHANGELOG.md +64 -0
- lattice_inference-0.3.0a1/LICENSE +202 -0
- lattice_inference-0.3.0a1/NOTICE +21 -0
- lattice_inference-0.3.0a1/PKG-INFO +21 -0
- lattice_inference-0.3.0a1/README.md +348 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/adaptive-experiment-source.tar.gz +0 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/adaptive-source-manifest.json +41 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/backend-build.json +46 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/environment.json +68 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/manifest.json +36 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/standard-runtime-commit.txt +1 -0
- lattice_inference-0.3.0a1/benchmarks/baseline/standard-source.tar.gz +0 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/README.md +13 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/catalog-curated-v1.json +716 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/catalog-v1.json +707 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/corpus-smoke.txt +79 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/eval-subsets-curated-v1.json +3689 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/eval-subsets-v1.json +3689 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/examples/README.md +5 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/examples/arithmetic-v1.json +359 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/examples/instructions-v1.json +536 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/examples/retrieval-v1.json +406 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/examples/structured-v1.json +426 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/license-errata-v1.json +23 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/catalog-curated-before-license-errata-v1.json +707 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/curated-evaluation-equivalence-v1.json +8 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/download-intake-v1.json +238 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/generated-curated-intake-v1.json +241 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/generated-intake-v1.json +116 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/generated-reproduction-v1.json +9 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/intake-environment-v1.json +19 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/mgsm-candidate-excluded.json +98 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/multilingual-additions-v1.json +30 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/prepared-intake-v1.json +388 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/prepared-reproduction-v1.json +9 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/tydiqa-v1.json +1314 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/manifests/xquad-v1.json +1280 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/multilingual-subset-v1.json +1025 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/quality-smoke.json +168 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/README.md +11 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/Rowan--hellaswag-card.txt +218 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/Salesforce--wikitext-card.txt +344 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/allenai--ai2_arc-card.txt +286 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/allenai--openbookqa-card.txt +301 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/allenai--winogrande--LICENSE.txt +201 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/allenai--winogrande--README.md.txt +133 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/allenai--winogrande-card.txt +414 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/google--IFEval-card.txt +168 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/google--boolq-card.txt +204 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/google-research--google-research--LICENSE.txt +202 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/google-research--google-research--instruction_following_eval--README.md.txt +44 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/google-research--google-research--instruction_following_eval--instructions.py.txt +1566 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/google-research-datasets--mbpp-card.txt +276 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/humaneval-license.txt +21 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/ifeval-readme.txt +44 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/juletxara--mgsm-card.txt +520 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/openai--grade-school-math--LICENSE.txt +21 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/openai--grade-school-math--README.md.txt +99 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/openai--gsm8k-card.txt +226 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/openai--human-eval--LICENSE.txt +21 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/openai--openai_humaneval-card.txt +208 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/rajpurkar--squad_v2-card.txt +279 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/tau--commonsense_qa-card.txt +233 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/tydiqa-card.txt +320 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/winogrande-license.txt +201 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/source_audit/xquad-card.txt +612 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/sources.lock.json +407 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/tydiqa.lock.json +10 -0
- lattice_inference-0.3.0a1/benchmarks/datasets/xquad.lock.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/serving/source-manifest.json +43 -0
- lattice_inference-0.3.0a1/benchmarks/serving/two-slot-experiment-source.tar.gz +0 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/burst-admission-protocol-v1.json +13 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/burst-coalescing-confirmation-v1.json +18 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-burst-confirmation-v1.draft.json +60 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-burst-confirmation-v1.json +71 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v1.json +91 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v2.draft.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v2.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v3.draft.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v3.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v4.draft.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v5.draft.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v6.draft.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v6.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v7.draft.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-cache-budget-confirmation-v7.json +92 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/chat-single-cpu-confirmation-v1.draft.json +69 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/competitive-gate-v1.json +44 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/cpu-v1.json +58 -0
- lattice_inference-0.3.0a1/benchmarks/workloads/cpu-v2-followup.json +59 -0
- lattice_inference-0.3.0a1/configs/batching-experiments.json +71 -0
- lattice_inference-0.3.0a1/configs/experiments-frozen.json +70 -0
- lattice_inference-0.3.0a1/configs/frozen-baseline.json +39 -0
- lattice_inference-0.3.0a1/configs/local.json +71 -0
- lattice_inference-0.3.0a1/configs/measured-policy.json +159 -0
- lattice_inference-0.3.0a1/configs/serial-serving.json +71 -0
- lattice_inference-0.3.0a1/configs/single-thread-experiments.json +72 -0
- lattice_inference-0.3.0a1/dashboard/data.json +699 -0
- lattice_inference-0.3.0a1/dashboard/index.html +8 -0
- lattice_inference-0.3.0a1/docs/adaptive_inference.md +11 -0
- lattice_inference-0.3.0a1/docs/adaptive_native_cache_comparison.md +15 -0
- lattice_inference-0.3.0a1/docs/admission_boundaries.md +28 -0
- lattice_inference-0.3.0a1/docs/admission_experiments.md +46 -0
- lattice_inference-0.3.0a1/docs/architecture.md +49 -0
- lattice_inference-0.3.0a1/docs/baseline_runtime.md +78 -0
- lattice_inference-0.3.0a1/docs/benchmark_environment_concern.md +56 -0
- lattice_inference-0.3.0a1/docs/benchmark_followup_results.md +79 -0
- lattice_inference-0.3.0a1/docs/benchmark_methodology.md +70 -0
- lattice_inference-0.3.0a1/docs/benchmark_results.md +78 -0
- lattice_inference-0.3.0a1/docs/burst_admission_confirmation.md +36 -0
- lattice_inference-0.3.0a1/docs/chat-cache-budget-boundaries-v6.md +20 -0
- lattice_inference-0.3.0a1/docs/chat-cache-budget-boundaries-v7.md +20 -0
- lattice_inference-0.3.0a1/docs/chat-cache-budget-confirmation-v6.md +28 -0
- lattice_inference-0.3.0a1/docs/chat-cache-budget-confirmation-v7.md +28 -0
- lattice_inference-0.3.0a1/docs/chat_admission_boundaries.md +20 -0
- lattice_inference-0.3.0a1/docs/chat_admission_confirmation.md +27 -0
- lattice_inference-0.3.0a1/docs/chat_admission_development.md +49 -0
- lattice_inference-0.3.0a1/docs/chat_cache_budget_boundaries.md +20 -0
- lattice_inference-0.3.0a1/docs/chat_cache_budget_boundaries_v2.md +20 -0
- lattice_inference-0.3.0a1/docs/chat_cache_budget_boundaries_v3.md +20 -0
- lattice_inference-0.3.0a1/docs/chat_cache_budget_confirmation.md +27 -0
- lattice_inference-0.3.0a1/docs/chat_cache_budget_confirmation_v2.md +28 -0
- lattice_inference-0.3.0a1/docs/chat_cache_budget_confirmation_v3.md +28 -0
- lattice_inference-0.3.0a1/docs/chat_confirmation_followup.md +19 -0
- lattice_inference-0.3.0a1/docs/comparison_matrix.md +13 -0
- lattice_inference-0.3.0a1/docs/competitive_execution_plan.md +62 -0
- lattice_inference-0.3.0a1/docs/compute_budgeting.md +9 -0
- lattice_inference-0.3.0a1/docs/concurrent_prefix_cache.md +17 -0
- lattice_inference-0.3.0a1/docs/concurrent_serving.md +27 -0
- lattice_inference-0.3.0a1/docs/concurrent_serving_results.md +20 -0
- lattice_inference-0.3.0a1/docs/dataset_results.md +93 -0
- lattice_inference-0.3.0a1/docs/datasets.md +133 -0
- lattice_inference-0.3.0a1/docs/direct_lattice_batching_comparison.md +16 -0
- lattice_inference-0.3.0a1/docs/direct_lattice_comparison.md +19 -0
- lattice_inference-0.3.0a1/docs/hardware_compatibility.md +20 -0
- lattice_inference-0.3.0a1/docs/kv_cache_optimization.md +11 -0
- lattice_inference-0.3.0a1/docs/larger_model_dataset_results.md +28 -0
- lattice_inference-0.3.0a1/docs/limitations.md +17 -0
- lattice_inference-0.3.0a1/docs/long_context_dataset_results.md +17 -0
- lattice_inference-0.3.0a1/docs/model_compatibility.md +46 -0
- lattice_inference-0.3.0a1/docs/model_routing.md +7 -0
- lattice_inference-0.3.0a1/docs/multilingual_datasets.md +55 -0
- lattice_inference-0.3.0a1/docs/profiling.md +13 -0
- lattice_inference-0.3.0a1/docs/quality_preservation.md +11 -0
- lattice_inference-0.3.0a1/docs/quantization_analysis.md +17 -0
- lattice_inference-0.3.0a1/docs/release_readiness.md +26 -0
- lattice_inference-0.3.0a1/docs/request_scheduling.md +9 -0
- lattice_inference-0.3.0a1/docs/research_landscape.md +86 -0
- lattice_inference-0.3.0a1/docs/roadmap.md +57 -0
- lattice_inference-0.3.0a1/docs/security.md +11 -0
- lattice_inference-0.3.0a1/docs/single_cpu_admission_development.md +43 -0
- lattice_inference-0.3.0a1/docs/speculative_decoding.md +15 -0
- lattice_inference-0.3.0a1/experiments/adaptive_cache_vs_direct.py +296 -0
- lattice_inference-0.3.0a1/experiments/adaptive_cpu.py +112 -0
- lattice_inference-0.3.0a1/experiments/admission_boundaries.py +81 -0
- lattice_inference-0.3.0a1/experiments/burst_admission.py +433 -0
- lattice_inference-0.3.0a1/experiments/cache_cpu.py +121 -0
- lattice_inference-0.3.0a1/experiments/chat_admission_boundaries.py +121 -0
- lattice_inference-0.3.0a1/experiments/chat_burst_admission.py +124 -0
- lattice_inference-0.3.0a1/experiments/datasets/full_corpus.py +141 -0
- lattice_inference-0.3.0a1/experiments/datasets/larger_model_corpus.py +146 -0
- lattice_inference-0.3.0a1/experiments/datasets/larger_model_quality.py +42 -0
- lattice_inference-0.3.0a1/experiments/datasets/long_context_quality.py +190 -0
- lattice_inference-0.3.0a1/experiments/datasets/multilingual_quality.py +93 -0
- lattice_inference-0.3.0a1/experiments/datasets/quality_baseline.py +304 -0
- lattice_inference-0.3.0a1/experiments/datasets/token_lengths.py +141 -0
- lattice_inference-0.3.0a1/experiments/direct_vs_lattice.py +349 -0
- lattice_inference-0.3.0a1/experiments/direct_vs_lattice_batching.py +376 -0
- lattice_inference-0.3.0a1/experiments/precision_cpu.py +111 -0
- lattice_inference-0.3.0a1/experiments/serving/benchmark.py +265 -0
- lattice_inference-0.3.0a1/experiments/serving/probe.py +89 -0
- lattice_inference-0.3.0a1/experiments/speculative_blocks.py +130 -0
- lattice_inference-0.3.0a1/experiments/speculative_cpu.py +138 -0
- lattice_inference-0.3.0a1/pyproject.toml +33 -0
- lattice_inference-0.3.0a1/scripts/analyze_admission_boundaries.py +133 -0
- lattice_inference-0.3.0a1/scripts/analyze_admission_confirmation.py +374 -0
- lattice_inference-0.3.0a1/scripts/analyze_cache.py +77 -0
- lattice_inference-0.3.0a1/scripts/analyze_chat_admission.py +343 -0
- lattice_inference-0.3.0a1/scripts/analyze_chat_boundaries.py +81 -0
- lattice_inference-0.3.0a1/scripts/analyze_chat_development.py +148 -0
- lattice_inference-0.3.0a1/scripts/analyze_serving.py +168 -0
- lattice_inference-0.3.0a1/scripts/analyze_single_cpu_development.py +105 -0
- lattice_inference-0.3.0a1/scripts/archive_baseline.py +56 -0
- lattice_inference-0.3.0a1/scripts/audit_dataset_catalog.py +191 -0
- lattice_inference-0.3.0a1/scripts/audit_environment.py +70 -0
- lattice_inference-0.3.0a1/scripts/audit_multilingual_additions.py +83 -0
- lattice_inference-0.3.0a1/scripts/build_dashboard.py +132 -0
- lattice_inference-0.3.0a1/scripts/build_policy_evidence.py +114 -0
- lattice_inference-0.3.0a1/scripts/check_benchmark_host.py +122 -0
- lattice_inference-0.3.0a1/scripts/compare_dataset_quality.py +105 -0
- lattice_inference-0.3.0a1/scripts/continue_experiments.py +88 -0
- lattice_inference-0.3.0a1/scripts/curate_lattice_datasets.py +136 -0
- lattice_inference-0.3.0a1/scripts/export_dataset_observations.py +128 -0
- lattice_inference-0.3.0a1/scripts/fetch_dataset_sources.py +165 -0
- lattice_inference-0.3.0a1/scripts/finalize_admission_confirmation.py +51 -0
- lattice_inference-0.3.0a1/scripts/finalize_chat_confirmation.py +131 -0
- lattice_inference-0.3.0a1/scripts/finalize_checks.py +61 -0
- lattice_inference-0.3.0a1/scripts/freeze_dataset_eval.py +137 -0
- lattice_inference-0.3.0a1/scripts/generate_lattice_datasets.py +488 -0
- lattice_inference-0.3.0a1/scripts/lock_dataset_sources.py +207 -0
- lattice_inference-0.3.0a1/scripts/prepare_dataset_catalog.py +275 -0
- lattice_inference-0.3.0a1/scripts/prepare_tydiqa.py +132 -0
- lattice_inference-0.3.0a1/scripts/prepare_wikitext.py +44 -0
- lattice_inference-0.3.0a1/scripts/prepare_xquad.py +160 -0
- lattice_inference-0.3.0a1/scripts/provision_cpu.py +178 -0
- lattice_inference-0.3.0a1/scripts/provision_draft_target.py +59 -0
- lattice_inference-0.3.0a1/scripts/quantize_cpu.py +60 -0
- lattice_inference-0.3.0a1/scripts/render_adaptive_native_cache.py +78 -0
- lattice_inference-0.3.0a1/scripts/render_benchmark_followup.py +286 -0
- lattice_inference-0.3.0a1/scripts/render_comparison.py +85 -0
- lattice_inference-0.3.0a1/scripts/render_direct_lattice_batching.py +114 -0
- lattice_inference-0.3.0a1/scripts/render_direct_lattice_comparison.py +199 -0
- lattice_inference-0.3.0a1/scripts/render_results.py +135 -0
- lattice_inference-0.3.0a1/scripts/report_dataset_study.py +153 -0
- lattice_inference-0.3.0a1/scripts/report_larger_model_study.py +127 -0
- lattice_inference-0.3.0a1/scripts/research_sources.py +83 -0
- lattice_inference-0.3.0a1/scripts/run_admission_confirmation.py +65 -0
- lattice_inference-0.3.0a1/scripts/run_baseline.py +30 -0
- lattice_inference-0.3.0a1/scripts/run_benchmark_followup.py +127 -0
- lattice_inference-0.3.0a1/scripts/run_chat_confirmation.py +130 -0
- lattice_inference-0.3.0a1/scripts/run_cpu_budget.py +61 -0
- lattice_inference-0.3.0a1/scripts/run_serving_experiments.py +42 -0
- lattice_inference-0.3.0a1/scripts/validate_dataset_observations.py +104 -0
- lattice_inference-0.3.0a1/scripts/validate_long_context_observations.py +84 -0
- lattice_inference-0.3.0a1/scripts/verify_multilingual_quality.py +85 -0
- lattice_inference-0.3.0a1/src/lattice/__init__.py +3 -0
- lattice_inference-0.3.0a1/src/lattice/api.py +408 -0
- lattice_inference-0.3.0a1/src/lattice/backends/__init__.py +25 -0
- lattice_inference-0.3.0a1/src/lattice/backends/batched.py +381 -0
- lattice_inference-0.3.0a1/src/lattice/backends/http_client.py +17 -0
- lattice_inference-0.3.0a1/src/lattice/backends/llama_cpp.py +580 -0
- lattice_inference-0.3.0a1/src/lattice/cache/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/cache/prefix.py +123 -0
- lattice_inference-0.3.0a1/src/lattice/cli.py +440 -0
- lattice_inference-0.3.0a1/src/lattice/config.py +370 -0
- lattice_inference-0.3.0a1/src/lattice/controller/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/controller/policy.py +180 -0
- lattice_inference-0.3.0a1/src/lattice/data/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/data/comparison.py +84 -0
- lattice_inference-0.3.0a1/src/lattice/data/normalize.py +273 -0
- lattice_inference-0.3.0a1/src/lattice/data/schema.py +86 -0
- lattice_inference-0.3.0a1/src/lattice/data/scoring.py +301 -0
- lattice_inference-0.3.0a1/src/lattice/evaluation/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/evaluation/benchmark.py +328 -0
- lattice_inference-0.3.0a1/src/lattice/evaluation/quality.py +39 -0
- lattice_inference-0.3.0a1/src/lattice/observability/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/observability/hardware.py +70 -0
- lattice_inference-0.3.0a1/src/lattice/observability/host.py +223 -0
- lattice_inference-0.3.0a1/src/lattice/observability/measure.py +110 -0
- lattice_inference-0.3.0a1/src/lattice/optimizations/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/optimizations/speculative/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/optimizations/speculative/compatibility.py +80 -0
- lattice_inference-0.3.0a1/src/lattice/optimizations/speculative/sampling.py +122 -0
- lattice_inference-0.3.0a1/src/lattice/quantization/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/quantization/capabilities.py +67 -0
- lattice_inference-0.3.0a1/src/lattice/routing/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/routing/router.py +74 -0
- lattice_inference-0.3.0a1/src/lattice/runtime.py +381 -0
- lattice_inference-0.3.0a1/src/lattice/scheduler/__init__.py +1 -0
- lattice_inference-0.3.0a1/src/lattice/scheduler/budget.py +59 -0
- lattice_inference-0.3.0a1/src/lattice/scheduler/fair.py +155 -0
- lattice_inference-0.3.0a1/src/lattice/types.py +61 -0
- lattice_inference-0.3.0a1/src/lattice/worker.py +34 -0
- lattice_inference-0.3.0a1/tests/conftest.py +25 -0
- lattice_inference-0.3.0a1/tests/test_admission_statistics.py +72 -0
- lattice_inference-0.3.0a1/tests/test_api.py +116 -0
- lattice_inference-0.3.0a1/tests/test_batched_control.py +71 -0
- lattice_inference-0.3.0a1/tests/test_batched_serving.py +210 -0
- lattice_inference-0.3.0a1/tests/test_chat_confirmation_gates.py +220 -0
- lattice_inference-0.3.0a1/tests/test_coalesced_admission.py +135 -0
- lattice_inference-0.3.0a1/tests/test_concurrent_prefix_cache.py +73 -0
- lattice_inference-0.3.0a1/tests/test_cost_admission.py +75 -0
- lattice_inference-0.3.0a1/tests/test_cpu_integration.py +206 -0
- lattice_inference-0.3.0a1/tests/test_dataset_audit_cli.py +64 -0
- lattice_inference-0.3.0a1/tests/test_dataset_comparison.py +34 -0
- lattice_inference-0.3.0a1/tests/test_dataset_curation.py +42 -0
- lattice_inference-0.3.0a1/tests/test_dataset_downloads.py +57 -0
- lattice_inference-0.3.0a1/tests/test_dataset_generation.py +153 -0
- lattice_inference-0.3.0a1/tests/test_dataset_normalization.py +80 -0
- lattice_inference-0.3.0a1/tests/test_dataset_scoring.py +115 -0
- lattice_inference-0.3.0a1/tests/test_dataset_selection.py +51 -0
- lattice_inference-0.3.0a1/tests/test_evaluation.py +38 -0
- lattice_inference-0.3.0a1/tests/test_fair_scheduler.py +114 -0
- lattice_inference-0.3.0a1/tests/test_four_slot_integration.py +107 -0
- lattice_inference-0.3.0a1/tests/test_host_cpu.py +68 -0
- lattice_inference-0.3.0a1/tests/test_live_batched_server.py +157 -0
- lattice_inference-0.3.0a1/tests/test_live_concurrent_cache.py +170 -0
- lattice_inference-0.3.0a1/tests/test_live_server.py +161 -0
- lattice_inference-0.3.0a1/tests/test_model_registry_and_crossplatform.py +183 -0
- lattice_inference-0.3.0a1/tests/test_multilingual_data.py +43 -0
- lattice_inference-0.3.0a1/tests/test_native_http_context.py +10 -0
- lattice_inference-0.3.0a1/tests/test_policy_routing_budget.py +156 -0
- lattice_inference-0.3.0a1/tests/test_preemptive_admission.py +217 -0
- lattice_inference-0.3.0a1/tests/test_prefix_cache.py +52 -0
- lattice_inference-0.3.0a1/tests/test_quantization.py +26 -0
- lattice_inference-0.3.0a1/tests/test_reserved_admission.py +121 -0
- lattice_inference-0.3.0a1/tests/test_runtime.py +141 -0
- lattice_inference-0.3.0a1/tests/test_speculative_sampling.py +77 -0
- lattice_inference-0.3.0a1/tests/test_strategy_configuration.py +26 -0
- lattice_inference-0.3.0a1/tests/test_validation.py +55 -0
- lattice_inference-0.3.0a1/tests/test_worker_lifecycle.py +35 -0
- lattice_inference-0.3.0a1/uv.lock +567 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
.local/
|
|
3
|
+
models/
|
|
4
|
+
__pycache__/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.ruff_cache/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
dist/
|
|
9
|
+
artifacts/*.log
|
|
10
|
+
artifacts/requests.jsonl
|
|
11
|
+
benchmarks/results/**/private/
|
|
12
|
+
benchmarks/datasets/external/
|
|
13
|
+
benchmarks/datasets/generated/
|
|
14
|
+
|
|
15
|
+
benchmarks/results/**/private-*/
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## CPU admission research — unreleased
|
|
4
|
+
|
|
5
|
+
- Added opt-in preemptive priority admission (`priority_preemptive`) with cooperative token-step preemption and automatic stream resumption. High-priority interactive requests preempt lower-priority background tasks, achieving up to 78.5% lower interactive latency under heavy CPU load while background tasks resume seamlessly without output degradation.
|
|
6
|
+
- Profiled native HTTP setup and reused a verified SSL context without sharing request credentials or prompts.
|
|
7
|
+
- Added explicit 3/4/8-slot configuration and opt-in cost-priority, reservation and bounded burst-coalescing admission experiments; defaults remain unchanged.
|
|
8
|
+
- Preserved negative development experiments, native slot/batch sweeps and a frozen three-session confirmation protocol with paired uncertainty and exact-output checks.
|
|
9
|
+
- Added boundary diagnostics, including interactive-only, bulk-only, altered mixes, late arrivals and additional native concurrency challengers.
|
|
10
|
+
- Conventional scheduling heuristics and native batching are attributed explicitly; no new-kernel, broad model-quality or 1.0 claim follows.
|
|
11
|
+
- Recorded the raw confirmation as failed on exact greedy output preservation, retained boundary regressions and separated actual task correctness from output equality.
|
|
12
|
+
- Added model-template-framed development, then preserved its focused interruption when sustained CPU steal invalidated further tuning; no held-out chat win claimed.
|
|
13
|
+
- Bounded grace/drain waiters and added tested Linux CPU-steal counters, a bounded host preflight and prospective per-arm eligibility gates. Current unit/real CPU suite:159 passed.
|
|
14
|
+
- Added opt-in per-slot cached execution and a frozen cgroup-budget chat confirmation with three sessions, 30 paired traces and two tuned native challengers. The v7 restricted synthetic-burst gate passed latency, throughput, exact-output, cache-path, memory and per-arm CPU-steal checks; the earlier v1-v3 and v6 runs remain ineligible, and v4-v5 were stopped at preflight.
|
|
15
|
+
- Final v7 validation: 171 tests passed, Ruff lint/format checks passed, and wheel/source builds completed. No default behavior, release claim, or result from an earlier run was changed.
|
|
16
|
+
|
|
17
|
+
## Multilingual data addition — evaluation preparation
|
|
18
|
+
|
|
19
|
+
- Added pinned TyDiQA and XQuAD data-only intake recipes and 17,825 prepared evaluation records across nine/twelve language configurations.
|
|
20
|
+
- Quarantined 1,532 source rows failing exact answer-offset checks; preserved raw data and rejected IDs without label repairs.
|
|
21
|
+
- Reproduced exports and audited exact-prompt overlap against the original curated intake: combined 211,455 unique normalized prompts.
|
|
22
|
+
- Kept translation/SQuAD dependence, unvalidated multilingual scoring and source licensing caveats explicit; no new model scores claimed.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Dataset intake-v1 — unreleased evaluation infrastructure
|
|
26
|
+
|
|
27
|
+
- Pinned nine external dataset families / ten configurations with source licenses, file hashes and data-only loading.
|
|
28
|
+
- Prepared 183,241 external records with duplicate/group isolation and a preserved quarantine audit.
|
|
29
|
+
- Added 10,400 deterministic arithmetic, JSON, instruction and retrieval cases, canonical-reference checks and stratified policy partitions.
|
|
30
|
+
- Preserved 11 semantically invalid inventory cases in the original export and excluded them from a curated 193,630-record catalog without changing frozen evaluation selections.
|
|
31
|
+
- Added versioned generated-answer scorers, frozen 600-case evaluation subsets and reproducible corpus-loss/tokenizer/quality studies.
|
|
32
|
+
- Flagged WikiText’s upstream license-version conflict and corrected the historical inferred OR label through explicit catalog errata; raw corpus remains outside code packages.
|
|
33
|
+
- Kept official IFEval and sandboxed code execution explicitly deferred; retained the original smoke suite and precision study.
|
|
34
|
+
|
|
35
|
+
## 0.3.0.dev0 — unreleased concurrent CPU serving
|
|
36
|
+
|
|
37
|
+
- Added opt-in two-slot llama.cpp continuous batching with fixed per-request context and one resident model.
|
|
38
|
+
- Replaced serial-only admission with bounded, cancellation-safe priority semaphore admission.
|
|
39
|
+
- Added internal stream IDs, private native cancellation/idle confirmation, quarantine/draining and peer-preserving worker recovery.
|
|
40
|
+
- Verified native cancellation controls/context layout before accepting concurrent work; kept serial policy/precision evidence out of this mode.
|
|
41
|
+
- Added real runtime/HTTP cancellation, prefill-timeout and short-versus-long isolation tests.
|
|
42
|
+
- Preserved three paired 30-trial serving sessions, exact greedy comparisons, public smoke quality checks and all measured trade-offs.
|
|
43
|
+
- Kept automatic precision substitution disabled and the release classified as development work.
|
|
44
|
+
|
|
45
|
+
## 0.2.0.dev0 — unreleased research build
|
|
46
|
+
|
|
47
|
+
- Preserved executable standard source, artifact locks, eight workload categories, repeated observations, JSONL/CSV and an external pinned WikiText subset.
|
|
48
|
+
- Added exact full-distribution speculative reference tests and native greedy draft/target experiments, keeping negative performance outcomes.
|
|
49
|
+
- Added exact identity/tenant/TTL/byte-aware prefix eligibility and three-session greedy comparisons.
|
|
50
|
+
- Derived and evaluated Q8/Q4 variants from the frozen source; rejected Q4 automatic selection on measured quality loss.
|
|
51
|
+
- Added versioned exact-prompt evidence gating, resource checks, execution feedback and explicit registered-model switching.
|
|
52
|
+
- Added cancellation-safe priority/aging admission, address-space budgets, authenticated bounded profiling jobs and parent-death worker cleanup.
|
|
53
|
+
- Added real-data dashboard export and explicit CLI benchmark/profile/optimize/compare workflows.
|
|
54
|
+
- Retained the shared-VM isolation limits, small quality scope, unsupported stochastic native speculation/accelerators and non-preemptive serving as release concerns. No 1.0 release.
|
|
55
|
+
|
|
56
|
+
## 0.1.0.dev0 — Phase B baseline
|
|
57
|
+
|
|
58
|
+
- Real pinned CPU llama.cpp/Qwen FP16 generation, streaming API/CLI and structured timings.
|
|
59
|
+
- Artifact/input/context/output checks, auth, rate limits, queue, deadlines and cancellation/reload.
|
|
60
|
+
- Unit and real CPU/HTTP integration tests; Apache-2.0 for original code.
|
|
61
|
+
|
|
62
|
+
## Phase A
|
|
63
|
+
|
|
64
|
+
- Environment and upstream research audit, architecture, license recommendation and staged roadmap.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Lattice
|
|
2
|
+
Copyright 2026 Lattice contributors
|
|
3
|
+
|
|
4
|
+
Original Lattice code is licensed under Apache License 2.0.
|
|
5
|
+
|
|
6
|
+
The CPU runtime executes llama.cpp, an independent MIT-licensed project.
|
|
7
|
+
Its code, algorithms and kernels remain the work of its upstream contributors.
|
|
8
|
+
The separately provisioned backend includes its own third-party notices; consult
|
|
9
|
+
.local/llama.cpp/LICENSE and its vendor licenses for the exact pinned checkout.
|
|
10
|
+
|
|
11
|
+
Model weights are not included in Lattice distributions. The initial model
|
|
12
|
+
artifact is Qwen/Qwen2.5-0.5B-Instruct-GGUF, licensed separately under Apache-2.0.
|
|
13
|
+
See artifacts/model-LICENSE.txt and the pinned upstream model card.
|
|
14
|
+
|
|
15
|
+
Python runtime dependencies retain their respective licenses. Lattice's license
|
|
16
|
+
does not replace upstream model, backend or dependency license obligations.
|
|
17
|
+
|
|
18
|
+
Evaluation datasets are third-party content with separate source-specific terms.
|
|
19
|
+
See benchmarks/datasets/sources.lock.json, source_audit and docs/datasets.md.
|
|
20
|
+
External datasets are downloaded separately, not included in Lattice code packages.
|
|
21
|
+
Original deterministic Lattice dataset generators and authored samples are Apache-2.0.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: lattice-inference
|
|
3
|
+
Version: 0.3.0a1
|
|
4
|
+
Summary: Instant chat replies for local LLMs even while heavy background tasks are running on CPU
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Requires-Dist: fastapi<1,>=0.115
|
|
10
|
+
Requires-Dist: httpx<1,>=0.28
|
|
11
|
+
Requires-Dist: pydantic<3,>=2.10
|
|
12
|
+
Requires-Dist: uvicorn<1,>=0.34
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest-asyncio<2,>=1; extra == 'dev'
|
|
15
|
+
Requires-Dist: pytest<10,>=8; extra == 'dev'
|
|
16
|
+
Requires-Dist: ruff<1,>=0.12; extra == 'dev'
|
|
17
|
+
Provides-Extra: evaluation
|
|
18
|
+
Requires-Dist: pyarrow==23.0.1; extra == 'evaluation'
|
|
19
|
+
Provides-Extra: provision
|
|
20
|
+
Requires-Dist: cmake==4.4.5; extra == 'provision'
|
|
21
|
+
Requires-Dist: ninja==1.13.2; extra == 'provision'
|