Add Evo2-7B contrib model (StripedHyena 2 DNA language model)#123
Open
jimburtoft wants to merge 1 commit intoaws-neuron:mainfrom
Open
Add Evo2-7B contrib model (StripedHyena 2 DNA language model)#123jimburtoft wants to merge 1 commit intoaws-neuron:mainfrom
jimburtoft wants to merge 1 commit intoaws-neuron:mainfrom
Conversation
Port of Arc Institute's Evo2 7B DNA language model to AWS Neuron/Trainium. Uses component-wise tracing with NeuronFFT v2 (Stockham FFT) for SSM layers, block-by-block compilation, and batched decode with state persistence. Key features: - NeuronFFT v2: Stockham auto-sort FFT replacing torch.fft (unsupported on XLA) - 32-block prefill pipeline (seq_len up to 2048, cosine sim 0.99968 vs CPU) - Batched decode with KV-cache + SSM state (100/100 token match vs CPU) - DP=4 via process-per-core: 63.0 tok/s total throughput - Self-contained single-file module (modeling_evo2.py) - 7 integration tests (4 CPU-only FFT, 3 Neuron compilation+accuracy)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
torch.fft.*torch_neuronx.trace()compilation with block-by-block prefill (32 NEFFs) and batched decode with HBM-resident stateModel Details
Performance
Key Technical Contributions
torch.fft.rfft/irfft(unsupported on Neuron XLA)input_output_aliasesacross decode stepsTesting