Instructions to use Mxode/NanoExperiment-Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mxode/NanoExperiment-Models with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="Mxode/NanoExperiment-Models")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mxode/NanoExperiment-Models", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files9 unmodified lines1011121314158 unmodified lines2425262728293031323334353614 unmodified lines515253545556148 unmodified lines2052062072089 unmodified lines---# **NanoTranslator-Experimental**| Arch. | Act. | V. | H. | I. | L. | A. | K. | Tie || :--: | :--: | :--: | :-----: | :---: | :------: | :--: | :--: | :--: || LLaMA | SwiGLU | 2K | 256 | 768 | 2 | 8 | 4 | True |8 unmodified lines| StableLM | SwiGLU | 2K | 256 | 768 | 2 | 8 | 4 | True || GPT2 | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || GPT-J | GeGLU | 2K | 256 | 1024 | 2 | 4 | 4 | True || GPT-Neo | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || GPT-NeoX | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || Bloom | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || MPT | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || RWKV | - | 2K | 256 | 1024 | 2 | - | - | True || | Value || :------------: | :------------------------: |14 unmodified lines| Seed | 3407 |<table border="1" cellpadding="10" cellspacing="0" style="margin: 0 auto; border-collapse: collapse; text-align: center;"><thead>148 unmodified lines<td></td></tr></tbody></table>9 unmodified lines10111213141516178 unmodified lines2627282930313233343536373814 unmodified lines535455565758596061148 unmodified lines2102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682699 unmodified lines---# **NanoTranslator-Experimental**## Models| Arch. | Act. | V. | H. | I. | L. | A. | K. | Tie || :--: | :--: | :--: | :-----: | :---: | :------: | :--: | :--: | :--: || LLaMA | SwiGLU | 2K | 256 | 768 | 2 | 8 | 4 | True |8 unmodified lines| StableLM | SwiGLU | 2K | 256 | 768 | 2 | 8 | 4 | True || GPT2 | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || GPT-J | GeGLU | 2K | 256 | 1024 | 2 | 4 | 4 | True || GPT-NeoX | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || Bloom | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || MPT | GeGLU | 2K | 256 | 1024 | 2 | 8 | 8 | True || RWKV | - | 2K | 256 | 1024 | 2 | - | - | True |## Experimental Setup| | Value || :------------: | :------------------------: |14 unmodified lines| Seed | 3407 |## Results### Trapezoidal v.s. Cosine<table border="1" cellpadding="10" cellspacing="0" style="margin: 0 auto; border-collapse: collapse; text-align: center;"><thead>148 unmodified lines<td></td></tr></tbody></table>### BF16 & FP16<table border="1" cellpadding="10" cellspacing="0" style="margin: 0 auto; border-collapse: collapse; text-align: center;"><thead><tr><th rowspan="2">Arch.</th><th colspan="2">Total Loss</th><th colspan="2">Final Loss (Last 10 steps Avg.)</th></tr><tr><th>FP16</th><th>BF16</th><th>FP16</th><th>BF16</th></tr></thead><tbody><tr><td>LLaMA</td><td>1.5734</td><td>1.5714</td><td>1.2784</td><td>1.2758</td></tr><tr><td>Qwen2</td><td>1.5735</td><td>1.5675</td><td>1.2760</td><td>1.2764</td></tr><tr><td>Mistral</td><td>1.5756</td><td>1.5694</td><td>1.2787</td><td>1.2740</td></tr><tr><td>OLMo</td><td>1.6011</td><td>1.6059</td><td>1.2857</td><td>1.2901</td></tr><tr><td>Cohere</td><td>2.1327</td><td>2.1112</td><td>1.6244</td><td>1.6346</td></tr></tbody></table>
README.md+63-2