code wiki / (root) / nx_llm_landscape_research.nx

nx_llm_landscape_research.nx source

↩ module page · 27 lines · 1847 B

1// nx_llm_landscape_research.nx -- THIN structured research organ for the NEXT-STEPS decision: which small 2// open-weight model to run on the sovereign no-float + block-float stack, and the inference reference. COMPOSES 3// nx_research_engine (shared fetch->extract->bank); structured sections, no TSV, no copy-pasted loop. 4// expect_exit: 0 license_tier: ORIGINAL 5import "nx_research_engine.nx" 6const K_MAGIC_8388608: i64 = 8388608 7 8func main() -> i64 { 9 let store: *TrustStore = rf_init() 10 if (store as i64) == 0 { rf_puts("llm_landscape: trust store load failed\n" as *u8); return 1 } 11 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- LLM next-steps landscape -> Library\n" as *u8) 12 let cap: i64 = K_MAGIC_8388608 13 let out: *u8 = sys_mmap(cap) 14 var ok: i64 = 0 15 16 rf_section("OPEN-WEIGHT MODEL FAMILIES (candidates to run sovereignly: small, capable, open license)" as *u8) 17 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Llama_(language_model)" as *u8, "llm_llama" as *u8, store, out, cap) 18 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Qwen" as *u8, "llm_qwen" as *u8, store, out, cap) 19 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Mistral_AI" as *u8, "llm_mistral" as *u8, store, out, cap) 20 ok = ok + rf_fetch_bank("https://en.wikipedia.org/wiki/Gemma_(language_model)" as *u8, "llm_gemma" as *u8, store, out, cap) 21 22 rf_section("INFERENCE REFERENCE (how small models run on modest hardware -- GGUF, quantized CPU/GPU inference)" as *u8) 23 ok = ok + rf_fetch_bank("https://raw.githubusercontent.com/ggml-org/llama.cpp/master/README.md" as *u8, "llm_llamacpp_readme" as *u8, store, out, cap) 24 25 rf_puts("LLM-LANDSCAPE BANKED: "); rf_putn(ok); rf_puts(" / 5 (sections preserved, gzip-guarded; run nx_library_harvest_v2 to index)\n" as *u8) 26 return 0 27}