Skip to content

Rename CLI binary to neurons + add Sampler/HFTokenizer unit tests#40

Merged
dexwritescode merged 2 commits into
mainfrom
fix-audit-8l2-m3j
May 15, 2026
Merged

Rename CLI binary to neurons + add Sampler/HFTokenizer unit tests#40
dexwritescode merged 2 commits into
mainfrom
fix-audit-8l2-m3j

Conversation

@dexwritescode
Copy link
Copy Markdown
Owner

Summary

  • Neurons-8l2: Rename the CLI binary output name from neuron to neurons. Eliminates the cognitive friction of the project being called "Neurons" but the command being neuron. Updates all docs, release workflow, and the CLI app name string.
  • Neurons-m3j: Add dedicated unit tests for Sampler and HFTokenizer — two inference-path modules previously only covered incidentally by integration tests that require a model on disk.
    • test_sampler.cpp: greedy argmax, top-k, top-p, min-p, rep_penalty (uses top_k=1 for determinism), dedup
    • test_hf_tokenizer.cpp: encode/decode roundtrip, add_special_tokens, skip_special_tokens, find_token_id, vocab size sanity, error path (skips automatically when TinyLlama is absent)

Eliminates the cognitive friction of mapping project name "Neurons"
to binary name "neuron". The binary, CLI app name, all docs, and
release artifact name are now consistently "neurons".
Both inference-path modules were previously only covered by integration
tests that require a real model on disk. The new tests are self-contained
(sampler) or skip automatically when TinyLlama is absent (HFTokenizer).

- test_sampler.cpp: greedy argmax, top-k filtering, top-p nucleus, min-p,
  rep_penalty winner shift (uses top_k=1 for determinism), and dedup
- test_hf_tokenizer.cpp: encode/decode roundtrip, add_special_tokens,
  skip_special_tokens, find_token_id, vocab size sanity, error path
@dexwritescode dexwritescode added the release:skip Skips release creation on merge label May 15, 2026
@dexwritescode dexwritescode merged commit d3d4ae5 into main May 15, 2026
4 checks passed
@dexwritescode dexwritescode deleted the fix-audit-8l2-m3j branch May 15, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:skip Skips release creation on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant