Commit History
-
fix(deploy): bind port immediately and warm up models in background
Andrej JanchevskiHF Spaces marked the container unhealthy ("Launch timed out, workload was not healthy after 30 min") because gunicorn only bound :7860 after the checkpoint download and the --preload ModelRegistry init (COINs graph metrics) had finished. - entrypoint.sh: drop the blocking snapshot_download pre-warm and --preload; exec gunicorn straight away - ModelRegistry.start_background_initialize() runs initialize() in a daemon thread from ApiConfig.ready(); get() raises 503 MODEL_UNAVAILABLE until ready - /health always returns 200 with status ok | warming_up | error and a warmup progress object - frontend: WarmupBanner polls /health and shows a loading state; apiError reads the error envelope; SystemStatus reads models_loaded - docs: backend README, api.yaml, architecture / lifecycle docs93b17d3
-
fix(coins): score full hit community instead of only valid answers
Andrej JanchevskiStep 2 used to filter candidate entities to the set returned by get_all_answers, so the link ranker only ever scored entities already known to satisfy the query. Top-K therefore showed at most one row when a community had a single valid answer, and the reported speedup hid the fact that the model was not actually discriminating against negatives. Now Step 2 mirrors rank_samples (experiments.py:782-786): the hit community is the first one in step-1 order containing any valid answer, and we score every entity in it minus the anchors. Predictions carry an is_valid_answer flag so the UI can mark genuine hits with a check icon. Scoring is mini-batched at 512 to bound CPU memory on large communities. The OpenAPI CoinsPrediction schema gains the required is_valid_answer boolean to keep clients in sync.2d03843 -
docs(deploy): refresh for the post-launch deployment iteration
Andrej JanchevskiCaptures the architecture and operational decisions made during the local Docker bring-up: the unified RESEARCH_ROOT / CHECKPOINTS_ROOT layout, the single preloaded gunicorn worker, the AppConfig skip-list for management commands, the share_memory and TransE-init dim- expansion monkey-patches around experiment.prepare(), the MultiProx symmetry safeguard, the bundled Loader caches that keep cold-start RAM under control, and the WSL2 / shm_size requirements for running the container locally. Also corrects every HF Hub reference to the case-sensitive Bani57 namespace (account is registered as "Bani57", not "bani57"), and clarifies the HF_TOKEN env var as recommended (read-scope token lifts anonymous rate limits and roughly triples cold-start download throughput; required only for private repos).5ed6f37
-
docs: add technical documentation set
Andrej JanchevskiLays out a docs/ tree in Diataxis layout and rewires the three README files (top-level, src/backend, src/frontend) as thin routing layers that delegate the depth to docs/. - docs/glossary.md owns every domain term (COINs, MultiProxAn, query structure, SSE, inference lock, state blob, HF Space, …); other docs link in on first mention rather than redefining. - docs/explanation/{architecture,research-methods,inference-lifecycle}.md cover container topology, what each demo computes scientifically, and the boot/lazy-load/lock sequence. Mermaid diagrams for the request flow and container lifecycle. - docs/reference/{api,sse-protocol,backend-services,frontend-modules}.md describe endpoints, the streaming wire format, every Python service module, and every frontend store / composable / component group. - docs/guides/{local-development,deploy}.md walk through setting up website_c locally and publishing a release to the HF Space (with Space secrets, checkpoint refresh, and ro…175b650
-
feat(kganomaly): add streaming denoising backend with KG-likelihood metric
Andrej Janchevski- New endpoints emit Server-Sent Events via api/renderers.py so the diffusion reverse process streams progress + frame previews instead of blocking on a single response. - kg_likelihood.py exposes a per-step mean log-sigmoid score from the frozen KG embedder + link ranker; kg_anomaly_inference.py logs it on frame boundaries and attaches kg_log_likelihood / kg_log_likelihood_step to progress events so the UI can render a "denoising-is-working" trace alongside step-duration sparklines. - registry._build_sample_subgraphs now accepts a seed (so each request gets a different DFS partition), shuffles candidate (row, col) pairs, and rejects ill-shaped bipartite samples whose halves can't form valid inpaint quadrants. Sampler.get_context_subgraph_samples_dfs gains the matching seed parameter in the research code. - api.yaml + backend README document the new optional progress fields.bc4fc5c
-
feat(coins): add sample-query endpoint and resolve Freebase MIDs to names
Andrej JanchevskiAdd GET /coins/datasets/{id}/sample-query that produces structurally valid KG queries for all 7 query structures by delegating to Query.instantiate() from the research code rather than hand-rolling graph walks. Returns anchors, variables, relations, and a known target entity — guaranteed to form a real path/intersection in the training KG. Also resolve Freebase MID identifiers (e.g. /m/06rf7) to human-readable names (e.g. Schleswig Holstein) using the ent2name.txt lookup table: - Entity and relation search endpoints now return a `label` field with cleaned display names alongside the raw `name` - Search filtering matches against both raw names and cleaned labels, so searching "Chicago" finds /m/01yjl (Chicago Cubs) - sample-query and sample-triples responses carry resolved labelsdb54566
-
feat(coins): add optional seed param and label fields to sample-triples
Andrej Janchevski- registry.sample_triples now accepts seed= for deterministic sampling via random.Random(seed); omitted seed preserves prior random behaviour - Each head/relation/tail gains a dataset-cleaned label alongside id and name (NELL strips concept:, Freebase strips /m/, WordNet drops POS suffix) so the frontend can show display-friendly strings without duplicating the cleanup logic - OpenAPI, Postman collection, and backend README updated in lockstep - Enables a day-stable NELL Fact of the Day widget seeded by ISO dateee3e8fe
-
feat(kg-anomaly): add correct/continue endpoints with SSE streaming
Andrej JanchevskiImplements the two remaining inference endpoints for the KG anomaly feature, following the MultiProxAn graph-generation pattern: - POST /kg-anomaly/correct: standard denoising (correct/generate tasks) or MultiProx Gibbs init; returns SSE stream with progress, preview, and terminal result events (before/after images, chain GIF, diff). - POST /kg-anomaly/continue: advances a MultiProx session one step. - Adds kg_anomaly_inference.py with tensor building, change detection, directed subgraph rendering (PIL + networkx), and an apply_edge_noise helper that task-aware forward-diffuses edges for demo input. - Extends GET /kg-anomaly/datasets/{id}/sample-subgraphs with noise_level/task/seed query params so callers can fetch pre-noised subgraphs ready for correction. - Registry: adds DiscreteDenoisingDiffusionKG loader that reconstructs dataset_infos from checkpoint state_dict shapes + COINs experiment. - Adds graph_generation/src to sys.path for bare imports inside the research…aaf56bb
-
docs(postman): add thesis-optimal multiprox params and force-unlock endpoint
Andrej Janchevski- QM9 multiprox: t=0.5, t'=0.004 (Table 4.3.1 best valid config) - Comm20 multiprox: t=0.4, t'=0.1 (Table C.2.1 best orbit/degree) - Add POST /debug/force-unlock request to Health folder - Auto-chaining test scripts for multiprox state between init/continue - Update README with SSE protocol and new endpoints - Update backend_multiproxan plan to reflect current design decisionsc50d15c
-
Implement COINs predict endpoint
Andrej Janchevski3ad32ba
-
Fixes
Andrej Janchevskidf10af3
-
Implement backend discovery endpoints
Andrej Janchevski4f1e196
-
Implement API skeleton
Andrej Janchevski0b4eacc -
Add postman collection and environment for API
Andrej Janchevski8d87d9f -
KG generation docs fix
Andrej Janchevskid1cc684 -
Add first version of OpenAPI docs
Andrej Janchevski4a3297a -
Add CV and PhD thesis
Andrej Janchevski3faa702