Cheng98 / llama-39m

huggingface.co
Total runs: 14
24-hour runs: 0
7-day runs: 4
30-day runs: 4
Model's Last Updated: March 05 2024
text-generation

Introduction of llama-39m

Model Details of llama-39m

Toy LLaMA-39M

  • This is a tiny LLaMA model pretrained on Recag/Rp_C4_55 , a small subset of C4 with seq_len=512 .

    • Model architecture
      {
        "hidden_size": 512,
        "intermediate_size": 2048,
        "max_position_embeddings": 2048,
        "num_attention_heads": 8,
        "num_hidden_layers": 2,
        "num_key_value_heads": 8
      }
      
    • Load model and tokenizer:
      from transformers import AutoTokenizer, AutoModelForCausalLM
      model = AutoModelForCausalLM.from_pretrained("Cheng98/llama-39m")
      tokenizer = AutoTokenizer.from_pretrained("Cheng98/llama-39m")
      
    • Training script: huggingface/transformers/examples/pytorch/language-modeling/run_clm.py
      # "train" split is created from the last 95% samples of original "train" subset
      raw_datasets["validation"] = load_dataset("Recag/Rp_C4_55", split="train[5%:]")
      
  • Evaluation ( seq_len=512 ):

    Dataset Eval loss Perplexity Accuracy block_size
    Recag/Rp_C4_55 3.63 37.78 0.3561 512
    Wikitext2 4.58 97.48 0.2719 512
    • Evaluation command (Wikitext2):

      # Evaluation command
      python run_clm.py --model_name_or_path Cheng98/llama-39m \
        --dataset_name wikitext \
        --dataset_config_name wikitext-2-raw-v1 \
        --block_size 512 \
        --do_eval \
        --output_dir ./results
      
    • Evaluation on Recag/Rp_C4_55 ( seq_len=512 ):

      # "validation" split is created from the first 5% samples of original "train" subset
      raw_datasets["validation"] = load_dataset("Recag/Rp_C4_55", split="train[:5%]")
      

      Results

      {
        "eval_accuracy": 0.3561766818954313,
        "eval_loss": 3.6318140029907227,
        "eval_runtime": 190.8411,
        "eval_samples": 19413,
        "eval_samples_per_second": 101.723,
        "eval_steps_per_second": 1.593,
        "perplexity": 37.7812898658763
      }
      
    • Evaluation on Wikitext2 ( seq_len=512 ):

      {
        "eval_accuracy": 0.2718795201225219,
        "eval_loss": 4.579628944396973,
        "eval_runtime": 3.939,
        "eval_samples": 575,
        "eval_samples_per_second": 145.976,
        "eval_steps_per_second": 0.762,
        "perplexity": 97.47821765687856
      }
      

Runs of Cheng98 llama-39m on huggingface.co

14
Total runs
0
24-hour runs
0
3-day runs
4
7-day runs
4
30-day runs

More Information About llama-39m huggingface.co Model

More llama-39m license Visit here:

https://choosealicense.com/licenses/llama2

llama-39m huggingface.co

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

llama-39m huggingface.co Url

https://huggingface.co/Cheng98/llama-39m

Cheng98 llama-39m online free

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

Cheng98 llama-39m online free url in huggingface.co:

https://huggingface.co/Cheng98/llama-39m

llama-39m install

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

llama-39m install url in huggingface.co:

https://huggingface.co/Cheng98/llama-39m

Url of llama-39m

llama-39m huggingface.co Url

Provider of llama-39m huggingface.co

Cheng98
ORGANIZATIONS

Other API from Cheng98

huggingface.co

Total runs: 9
Run Growth: 3
Growth Rate: 33.33%
Updated:July 07 2023
huggingface.co

Total runs: 9
Run Growth: 3
Growth Rate: 33.33%
Updated:July 30 2023
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:April 12 2025