<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://namforum.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Training_a_NAM_Model</id>
	<title>Training a NAM Model - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://namforum.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Training_a_NAM_Model"/>
	<link rel="alternate" type="text/html" href="https://namforum.com/wiki/index.php?title=Training_a_NAM_Model&amp;action=history"/>
	<updated>2026-09-01T12:30:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://namforum.com/wiki/index.php?title=Training_a_NAM_Model&amp;diff=13&amp;oldid=prev</id>
		<title>NAMFORUM Sysop: Created page</title>
		<link rel="alternate" type="text/html" href="https://namforum.com/wiki/index.php?title=Training_a_NAM_Model&amp;diff=13&amp;oldid=prev"/>
		<updated>2026-09-01T06:01:34Z</updated>

		<summary type="html">&lt;p&gt;Created page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Training a NAM Model =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Training a NAM model&amp;#039;&amp;#039;&amp;#039; is the process of using recorded input and output audio to create a [[Neural Amp Modeler]] model of an amplifier, pedal, preamp, or other nonlinear audio system.&lt;br /&gt;
&lt;br /&gt;
NAM learns the relationship between a known input signal and the signal produced after that input passes through the equipment being modeled.&lt;br /&gt;
&lt;br /&gt;
The basic process is:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NAM input file → device under test → recorded output file → NAM trainer → .nam model&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Creating a good model therefore begins before training. The quality and accuracy of the recorded data are fundamental to the result.&lt;br /&gt;
&lt;br /&gt;
== Before training ==&lt;br /&gt;
&lt;br /&gt;
Before creating training data, decide exactly what the model should represent.&lt;br /&gt;
&lt;br /&gt;
The device under test may be:&lt;br /&gt;
&lt;br /&gt;
* An amplifier&lt;br /&gt;
* A pedal&lt;br /&gt;
* A preamp&lt;br /&gt;
* A direct amplifier signal&lt;br /&gt;
* An amplifier and cabinet&lt;br /&gt;
* Multiple devices in a chain&lt;br /&gt;
&lt;br /&gt;
Configure the equipment and document its settings.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
* [[Creating a Capture]]&lt;br /&gt;
* [[Capture Types]]&lt;br /&gt;
* [[Capture Signal Chain]]&lt;br /&gt;
&lt;br /&gt;
== Obtain the official input file ==&lt;br /&gt;
&lt;br /&gt;
The simplified NAM training workflow provides a standardized input audio file.&lt;br /&gt;
&lt;br /&gt;
The current local GUI trainer includes a &amp;#039;&amp;#039;&amp;#039;Download input file&amp;#039;&amp;#039;&amp;#039; button that links to the input audio used for training.&lt;br /&gt;
&lt;br /&gt;
Use the input file intended for the version and workflow of the NAM trainer being used.&lt;br /&gt;
&lt;br /&gt;
Do not casually modify the training file.&lt;br /&gt;
&lt;br /&gt;
Changes to its:&lt;br /&gt;
&lt;br /&gt;
* Level&lt;br /&gt;
* Length&lt;br /&gt;
* Sample rate&lt;br /&gt;
* Bit depth&lt;br /&gt;
* Timing&lt;br /&gt;
* Content&lt;br /&gt;
&lt;br /&gt;
can interfere with training or alter the relationship between the expected input and recorded output.&lt;br /&gt;
&lt;br /&gt;
== Reamp the input through the equipment ==&lt;br /&gt;
&lt;br /&gt;
The NAM input file is sent through the equipment being modeled.&lt;br /&gt;
&lt;br /&gt;
A typical path is:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NAM input.wav → audio interface output → reamp/capture path → device under test → return path → audio interface input&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The resulting signal is recorded as the output file.&lt;br /&gt;
&lt;br /&gt;
See [[Reamping for Capture]].&lt;br /&gt;
&lt;br /&gt;
Depending on the equipment, the return path might be:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Pedal → interface input&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Amplifier → suitable load/direct capture device → interface input&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Amplifier → cabinet → microphone → preamp/interface input&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The recorded output contains the behavior NAM will attempt to learn.&lt;br /&gt;
&lt;br /&gt;
== File format ==&lt;br /&gt;
&lt;br /&gt;
For the current simplified NAM GUI training workflow, the official input file is:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;48 kHz&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;24-bit&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;WAVE&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The rendered output should match those characteristics.&lt;br /&gt;
&lt;br /&gt;
The output recording must also match the length of the supplied input file.&lt;br /&gt;
&lt;br /&gt;
These requirements should be checked against the current NAM documentation whenever the trainer or workflow changes.&lt;br /&gt;
&lt;br /&gt;
== Record the return cleanly ==&lt;br /&gt;
&lt;br /&gt;
Unless intentionally part of the device being modeled, avoid adding processing to the recorded return.&lt;br /&gt;
&lt;br /&gt;
Check for:&lt;br /&gt;
&lt;br /&gt;
* DAW plugins&lt;br /&gt;
* EQ&lt;br /&gt;
* Compression&lt;br /&gt;
* Limiting&lt;br /&gt;
* Normalization&lt;br /&gt;
* Noise reduction&lt;br /&gt;
* Cabinet simulation&lt;br /&gt;
* Interface DSP&lt;br /&gt;
* Automatic gain control&lt;br /&gt;
* Master-bus processing&lt;br /&gt;
&lt;br /&gt;
Anything in the measured path can influence the model.&lt;br /&gt;
&lt;br /&gt;
If processing is deliberately part of the target chain, document it.&lt;br /&gt;
&lt;br /&gt;
== Avoid clipping ==&lt;br /&gt;
&lt;br /&gt;
The return recording must not contain unintended clipping.&lt;br /&gt;
&lt;br /&gt;
Check every stage of the capture path rather than relying only on the final DAW meter.&lt;br /&gt;
&lt;br /&gt;
Possible overload points include:&lt;br /&gt;
&lt;br /&gt;
* Interface output&lt;br /&gt;
* Reamp device&lt;br /&gt;
* Device under test&lt;br /&gt;
* Load/direct-output equipment&lt;br /&gt;
* Microphone preamp&lt;br /&gt;
* Interface input&lt;br /&gt;
* A/D converter&lt;br /&gt;
* DAW signal path&lt;br /&gt;
&lt;br /&gt;
Intentional distortion produced by the equipment being modeled is different from unintended clipping elsewhere in the recording system.&lt;br /&gt;
&lt;br /&gt;
== Send level ==&lt;br /&gt;
&lt;br /&gt;
The NAM calibration documentation recommends providing the equipment with training examples at least as loud as the levels at which the resulting model is expected to be used.&lt;br /&gt;
&lt;br /&gt;
This is particularly important with nonlinear equipment.&lt;br /&gt;
&lt;br /&gt;
If the training signal never drives the equipment into a region that will later be demanded from the model, the trainer has no measured examples of that behavior from which to learn.&lt;br /&gt;
&lt;br /&gt;
This does not mean that arbitrary overload is desirable.&lt;br /&gt;
&lt;br /&gt;
The objective is to expose the equipment to the useful operating range that the model is expected to reproduce while maintaining a valid capture signal chain.&lt;br /&gt;
&lt;br /&gt;
See [[Gain Staging and Calibration]].&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
NAM supports optional calibration metadata describing the relationship between digital signal level and the analog levels used during capture.&lt;br /&gt;
&lt;br /&gt;
The relevant metadata fields are:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;input_level_dbu&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;output_level_dbu&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Providing these values is optional. A NAM model can operate without calibration metadata.&lt;br /&gt;
&lt;br /&gt;
However, calibrated models can allow compatible playback systems to reproduce the gain relationship of the original analog equipment more accurately.&lt;br /&gt;
&lt;br /&gt;
The official NAM calibration procedure involves measuring the analog send level and determining the return-interface level corresponding to digital full scale.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;br /&gt;
* [[Gain Staging and Calibration]]&lt;br /&gt;
* [[NAM Model File Format]]&lt;br /&gt;
&lt;br /&gt;
== Do not change hardware gain after calibration measurement ==&lt;br /&gt;
&lt;br /&gt;
Calibration describes the actual hardware configuration used to create the training data.&lt;br /&gt;
&lt;br /&gt;
If output or input gain controls are changed after recording, calibration measurements made using the new settings no longer describe the original capture.&lt;br /&gt;
&lt;br /&gt;
For repeatable work, document and preserve:&lt;br /&gt;
&lt;br /&gt;
* Interface output setting&lt;br /&gt;
* Reamp setting&lt;br /&gt;
* Interface input gain&lt;br /&gt;
* Other variable gain stages&lt;br /&gt;
&lt;br /&gt;
until the relevant measurements are complete.&lt;br /&gt;
&lt;br /&gt;
== Preserve the original recording ==&lt;br /&gt;
&lt;br /&gt;
Keep an untouched copy of the returned training recording.&lt;br /&gt;
&lt;br /&gt;
This is useful if:&lt;br /&gt;
&lt;br /&gt;
* Training must be repeated&lt;br /&gt;
* A new architecture becomes available&lt;br /&gt;
* Metadata must be corrected&lt;br /&gt;
* A problem is discovered&lt;br /&gt;
* Another trainer is used&lt;br /&gt;
* Training parameters are compared&lt;br /&gt;
&lt;br /&gt;
Do not make destructive edits to the only copy of the original capture data.&lt;br /&gt;
&lt;br /&gt;
== Input and output length ==&lt;br /&gt;
&lt;br /&gt;
The current simplified NAM trainer requires the returned output recording to match the length of the input file.&lt;br /&gt;
&lt;br /&gt;
Problems can arise if:&lt;br /&gt;
&lt;br /&gt;
* Recording starts late&lt;br /&gt;
* Recording stops early&lt;br /&gt;
* Extra silence is added&lt;br /&gt;
* Material is removed&lt;br /&gt;
* The DAW adds a tail&lt;br /&gt;
* Export boundaries are wrong&lt;br /&gt;
&lt;br /&gt;
If editing is required to meet the trainer&amp;#039;s specification, preserve the original recording separately.&lt;br /&gt;
&lt;br /&gt;
== Latency alignment ==&lt;br /&gt;
&lt;br /&gt;
A recording system introduces round-trip latency.&lt;br /&gt;
&lt;br /&gt;
This means the recorded response does not necessarily begin at exactly the same sample position as the original training signal.&lt;br /&gt;
&lt;br /&gt;
The current NAM GUI trainer automatically attempts to align the input and output recordings.&lt;br /&gt;
&lt;br /&gt;
The official NAM input file contains two impulses near its beginning that assist this process.&lt;br /&gt;
&lt;br /&gt;
During training, the GUI displays its detected alignment so the user can inspect whether the response and input appear correctly aligned.&lt;br /&gt;
&lt;br /&gt;
DAWs may also perform latency compensation, and in some configurations that compensation can be incorrect or excessive.&lt;br /&gt;
&lt;br /&gt;
Therefore, do not assume that DAW compensation automatically guarantees correct alignment.&lt;br /&gt;
&lt;br /&gt;
== Select the files ==&lt;br /&gt;
&lt;br /&gt;
In the local GUI trainer, select:&lt;br /&gt;
&lt;br /&gt;
* The NAM input file&lt;br /&gt;
* The recorded output file&lt;br /&gt;
* The location where the trained model should be saved&lt;br /&gt;
&lt;br /&gt;
Once valid files have been selected, the trainer enables the training process.&lt;br /&gt;
&lt;br /&gt;
The trainer checks the files for problems before training begins.&lt;br /&gt;
&lt;br /&gt;
== Batch training ==&lt;br /&gt;
&lt;br /&gt;
The NAM GUI supports training multiple models in a batch.&lt;br /&gt;
&lt;br /&gt;
Multiple reamped output files can be selected while using the corresponding input training file.&lt;br /&gt;
&lt;br /&gt;
This can be useful when several captures have been made from:&lt;br /&gt;
&lt;br /&gt;
* Different amplifiers&lt;br /&gt;
* Different gain settings&lt;br /&gt;
* Different pedal settings&lt;br /&gt;
* Different channels&lt;br /&gt;
* Different signal chains&lt;br /&gt;
&lt;br /&gt;
Batch training can reduce repetitive setup when processing a larger capture session.&lt;br /&gt;
&lt;br /&gt;
== Training ==&lt;br /&gt;
&lt;br /&gt;
Start training using the trainer.&lt;br /&gt;
&lt;br /&gt;
The software analyzes the relationship between the known input signal and the recorded response and optimizes a neural-network model to reproduce that behavior.&lt;br /&gt;
&lt;br /&gt;
Training involves repeatedly adjusting the model parameters to reduce the difference between:&lt;br /&gt;
&lt;br /&gt;
* The actual recorded output&lt;br /&gt;
* The output predicted by the model&lt;br /&gt;
&lt;br /&gt;
When training completes, the resulting model is exported as a &amp;#039;&amp;#039;.nam&amp;#039;&amp;#039; file.&lt;br /&gt;
&lt;br /&gt;
See [[NAM Model File Format]].&lt;br /&gt;
&lt;br /&gt;
== Training evaluation ==&lt;br /&gt;
&lt;br /&gt;
At the end of the current GUI training process, NAM displays a comparison between the model&amp;#039;s prediction and the recorded response.&lt;br /&gt;
&lt;br /&gt;
This provides useful information about how closely the trained model follows the captured data.&lt;br /&gt;
&lt;br /&gt;
However, a successful training run is not by itself proof that the model is perceptually accurate.&lt;br /&gt;
&lt;br /&gt;
The model should still be evaluated by listening.&lt;br /&gt;
&lt;br /&gt;
== Listen to the model ==&lt;br /&gt;
&lt;br /&gt;
Load the resulting &amp;#039;&amp;#039;.nam&amp;#039;&amp;#039; file into a compatible NAM player.&lt;br /&gt;
&lt;br /&gt;
Compare it with the original equipment under controlled conditions.&lt;br /&gt;
&lt;br /&gt;
Where practical:&lt;br /&gt;
&lt;br /&gt;
# Use the same source performance.&lt;br /&gt;
# Match playback levels.&lt;br /&gt;
# Use equivalent cabinet processing.&lt;br /&gt;
# Switch between original and model quickly.&lt;br /&gt;
# Test different playing dynamics.&lt;br /&gt;
# Test more than one instrument or source where appropriate.&lt;br /&gt;
&lt;br /&gt;
Listen for differences in:&lt;br /&gt;
&lt;br /&gt;
* Gain&lt;br /&gt;
* Distortion&lt;br /&gt;
* Dynamics&lt;br /&gt;
* Attack&lt;br /&gt;
* Compression&lt;br /&gt;
* Low-frequency response&lt;br /&gt;
* High-frequency response&lt;br /&gt;
* Sustain&lt;br /&gt;
* Noise&lt;br /&gt;
* Transient behavior&lt;br /&gt;
&lt;br /&gt;
A model can achieve a technically successful training result while still revealing audible differences in practical use.&lt;br /&gt;
&lt;br /&gt;
== Model architecture ==&lt;br /&gt;
&lt;br /&gt;
NAM has supported multiple neural-network architectures.&lt;br /&gt;
&lt;br /&gt;
The architecture affects factors including:&lt;br /&gt;
&lt;br /&gt;
* Computational requirements&lt;br /&gt;
* Model size&lt;br /&gt;
* Training behavior&lt;br /&gt;
* Playback compatibility&lt;br /&gt;
* Modeling performance&lt;br /&gt;
&lt;br /&gt;
Current simplified NAM training workflows use the newer A2 generation for snapshot modeling.&lt;br /&gt;
&lt;br /&gt;
Older A1 models remain widely used.&lt;br /&gt;
&lt;br /&gt;
See [[NAM A2 Architecture]].&lt;br /&gt;
&lt;br /&gt;
== Model metadata ==&lt;br /&gt;
&lt;br /&gt;
When training a model for distribution, provide useful metadata where the trainer supports it.&lt;br /&gt;
&lt;br /&gt;
This can include:&lt;br /&gt;
&lt;br /&gt;
* Model name&lt;br /&gt;
* Creator&lt;br /&gt;
* Equipment manufacturer&lt;br /&gt;
* Equipment model&lt;br /&gt;
* Equipment type&lt;br /&gt;
* Tone type&lt;br /&gt;
* Input calibration&lt;br /&gt;
* Output calibration&lt;br /&gt;
&lt;br /&gt;
Metadata makes the model substantially more useful after it has been separated from the original capture session.&lt;br /&gt;
&lt;br /&gt;
See [[NAM Model File Format]].&lt;br /&gt;
&lt;br /&gt;
== Naming models ==&lt;br /&gt;
&lt;br /&gt;
Use filenames and model names that remain understandable outside the original session.&lt;br /&gt;
&lt;br /&gt;
Useful identifiers may include:&lt;br /&gt;
&lt;br /&gt;
* Manufacturer&lt;br /&gt;
* Equipment model&lt;br /&gt;
* Channel&lt;br /&gt;
* Gain setting&lt;br /&gt;
* Cabinet status&lt;br /&gt;
* Significant switches or settings&lt;br /&gt;
&lt;br /&gt;
Avoid relying on names such as:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;test1.nam&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;good-one-final2.nam&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
for models intended to become part of a permanent collection.&lt;br /&gt;
&lt;br /&gt;
== Retraining ==&lt;br /&gt;
&lt;br /&gt;
One advantage of preserving the original input and output recordings is that the same capture data may be trained again.&lt;br /&gt;
&lt;br /&gt;
Reasons for retraining can include:&lt;br /&gt;
&lt;br /&gt;
* New NAM architecture&lt;br /&gt;
* Updated trainer&lt;br /&gt;
* Different training settings&lt;br /&gt;
* Improved training software&lt;br /&gt;
* Comparison of architectures&lt;br /&gt;
* Corrected metadata&lt;br /&gt;
&lt;br /&gt;
The physical equipment does not necessarily have to be recaptured if the original measurement data remains suitable for the new training method.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting training ==&lt;br /&gt;
&lt;br /&gt;
If the trainer rejects the files or the resulting model behaves incorrectly, check:&lt;br /&gt;
&lt;br /&gt;
* Correct input file&lt;br /&gt;
* Correct output file&lt;br /&gt;
* Sample rate&lt;br /&gt;
* Bit depth&lt;br /&gt;
* File length&lt;br /&gt;
* Clipping&lt;br /&gt;
* Latency alignment&lt;br /&gt;
* Capture routing&lt;br /&gt;
* Calibration&lt;br /&gt;
* Unwanted processing&lt;br /&gt;
* Software version&lt;br /&gt;
&lt;br /&gt;
Do not randomly modify the recording simply to make training complete.&lt;br /&gt;
&lt;br /&gt;
Identify which requirement is not being met.&lt;br /&gt;
&lt;br /&gt;
See [[Troubleshooting Captures]].&lt;br /&gt;
&lt;br /&gt;
== Reproducibility ==&lt;br /&gt;
&lt;br /&gt;
For serious capture work, preserve enough information to reproduce the model.&lt;br /&gt;
&lt;br /&gt;
Useful records include:&lt;br /&gt;
&lt;br /&gt;
* Original NAM input file&lt;br /&gt;
* Original recorded output&lt;br /&gt;
* Device settings&lt;br /&gt;
* Complete capture signal chain&lt;br /&gt;
* Interface&lt;br /&gt;
* Reamp device&lt;br /&gt;
* Calibration&lt;br /&gt;
* Trainer version&lt;br /&gt;
* Model architecture&lt;br /&gt;
* Metadata&lt;br /&gt;
* Final .nam file&lt;br /&gt;
&lt;br /&gt;
The training file and resulting model are only part of the experiment.&lt;br /&gt;
&lt;br /&gt;
Good documentation allows the result to be understood later.&lt;br /&gt;
&lt;br /&gt;
== Official resources ==&lt;br /&gt;
&lt;br /&gt;
* [https://neural-amp-modeler.readthedocs.io/en/latest/tutorials/gui.html NAM local GUI training documentation]&lt;br /&gt;
* [https://neural-amp-modeler.readthedocs.io/en/stable/tutorials/calibration.html NAM calibration documentation]&lt;br /&gt;
* [https://www.neuralampmodeler.com/ Neural Amp Modeler official website]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Neural Amp Modeler]]&lt;br /&gt;
* [[NAM Model File Format]]&lt;br /&gt;
* [[NAM A2 Architecture]]&lt;br /&gt;
* [[NAM Playback]]&lt;br /&gt;
* [[Creating a Capture]]&lt;br /&gt;
* [[Capture Signal Chain]]&lt;br /&gt;
* [[Reamping for Capture]]&lt;br /&gt;
* [[Gain Staging and Calibration]]&lt;br /&gt;
* [[Troubleshooting Captures]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[https://namforum.com/ Discuss NAM training and capture workflows on NAMFORUM]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[Category:Neural Amp Modeler]]&lt;br /&gt;
[[Category:Model training]]&lt;br /&gt;
[[Category:Capture techniques]]&lt;/div&gt;</summary>
		<author><name>NAMFORUM Sysop</name></author>
	</entry>
</feed>