Argonne 1.5

Argonne 1.5 is an optimized and significantly improved causal language model compared to its predecessor, Argonne 1.0. It is built on Hugging Face's Transformers library, fully integrated with the AutoModel class for ease of use.

The codebase is in:

πŸ‘‰ https://github.com/PursuitOfDataScience/ArgonneAI/tree/Argonne-1.5


Model Improvements πŸš€

Compared to Argonne-1.0, this model features significant enhancements, including:

  • Utilized torch.compile() for improved pretraining speed.
  • Integrated Flash Attention for an additional 2.6Γ— memory efficiency improvement, enabling a much larger batch size.
  • Increased number of layers and attention heads for richer model capacity.
  • Better GPU hardware utilization.
  • Hugging Face AutoModel integration for convenient use.
  • Enhanced text generation capabilities.

Training Data πŸ“š

This model was trained on the same dataset used for Argonne-1.0 pretraining.


Model Details 🧠

Attribute Value
Parameters 356,516,640
Block Size 2048
Layers 16
Attention Heads 16
Embedding Size 1296
Batch Size 756

Training Hardware & Duration πŸ–₯️

  • Trained on a single DGX node (8Γ— A100 GPUs, 80GB each).
  • Total GPU Hours: 1248
  • Total Global Steps: 80,000

How to Use (Inference) βš™οΈ

Here's how you can quickly start generating text with Argonne-1.5:

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_path = "PursuitOfDataScience/Argonne-1.5"

# 1) Load the Argonne-1.5 model (set trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    trust_remote_code=True
)

# 2) Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_path)

# 3) Inference example
prompt = "The meaning of life is "
inputs = tokenizer(prompt, return_tensors="pt")

# generate text using common HF parameters
outputs = model.generate(**inputs, max_length=150, do_sample=True, top_k=50, top_p=0.95, temperature=0.7)

# Decode and print the generated text
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The meaning of life is tamed in many ways. It is a state of mental and physical development. It is a state of deep emotional strength and confidence, and it is a state of physical and mental balance. In this article, we will explore the meaning of life, the different ways life is defined, and how we can apply this concept to our own lives.
Downloads last month
7
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.

Dataset used to train PursuitOfDataScience/Argonne-1.5

Collection including PursuitOfDataScience/Argonne-1.5