pszemraj / megalodon-random-small

huggingface.co
Total runs: 91
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 29 2024
text-generation

Introduction of megalodon-random-small

Model Details of megalodon-random-small

random weights for testing megalodon implementation

arch

about 200m params

======================================================================
Layer (type:depth-idx) Output Shape      Param #  Trainable
======================================================================
MegalodonForCausalLM             227,707,904       True
  MegalodonModel                 194,151,424       True
    Embedding                     33,554,432       True
    ModuleList                   160,594,944       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
      MegalodonBlock              13,382,912       True
    TimestepNorm                       2,048       True
  MegalodonLMHead                 33,556,480       True
    TimestepNorm                       2,048       True
    Linear                        33,554,432       True
======================================================================
Total params: 227,707,904
Trainable params: 227,707,904
Non-trainable params: --
======================================================================
testing
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("pszemraj/megalodon-random-small", trust_remote_code=True)
# Dummy input for testing
input_ids = torch.randint(0, model.config.vocab_size, (2, 50))  # (batch_size, seq_length)
attention_mask = torch.ones(2, 50)  # (batch_size, seq_length)

outputs = model(
    input_ids=input_ids, attention_mask=attention_mask, labels=input_ids
)
loss = outputs.loss
logits = outputs.logits

print(f"Loss: {loss.item()}")
print(
    f"Logits shape: {logits.shape}"
)  # Expected: (batch_size, seq_length, vocab_size)

Runs of pszemraj megalodon-random-small on huggingface.co

91
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About megalodon-random-small huggingface.co Model

More megalodon-random-small license Visit here:

https://choosealicense.com/licenses/apache-2.0

megalodon-random-small huggingface.co

megalodon-random-small huggingface.co is an AI model on huggingface.co that provides megalodon-random-small's model effect (), which can be used instantly with this pszemraj megalodon-random-small model. huggingface.co supports a free trial of the megalodon-random-small model, and also provides paid use of the megalodon-random-small. Support call megalodon-random-small model through api, including Node.js, Python, http.

megalodon-random-small huggingface.co Url

https://huggingface.co/pszemraj/megalodon-random-small

pszemraj megalodon-random-small online free

megalodon-random-small huggingface.co is an online trial and call api platform, which integrates megalodon-random-small's modeling effects, including api services, and provides a free online trial of megalodon-random-small, you can try megalodon-random-small online for free by clicking the link below.

pszemraj megalodon-random-small online free url in huggingface.co:

https://huggingface.co/pszemraj/megalodon-random-small

megalodon-random-small install

megalodon-random-small is an open source model from GitHub that offers a free installation service, and any user can find megalodon-random-small on GitHub to install. At the same time, huggingface.co provides the effect of megalodon-random-small install, users can directly use megalodon-random-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

megalodon-random-small install url in huggingface.co:

https://huggingface.co/pszemraj/megalodon-random-small

Url of megalodon-random-small

megalodon-random-small huggingface.co Url

Provider of megalodon-random-small huggingface.co

pszemraj
ORGANIZATIONS

Other API from pszemraj