FlameF0X / SnowflakeCore-G1-Tiny2

huggingface.co
Total runs: 131
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: July 30 2025
text-generation

Introduction of SnowflakeCore-G1-Tiny2

Model Details of SnowflakeCore-G1-Tiny2

SnowflakeCore-G1-Tiny2

A improve version of SnowflakeCore-G1-Tiny custom GPT-style transformer language model built from scratch using PyTorch, trained on the common-pile/wikimedia_filtered dataset.

Model Overview

SnowflakeCore-G1-Tiny2 is a GPT-style autoregressive transformer model with ~400M parameters designed for text generation tasks.

Key Features
  • 2048 token context window for extended conversations
  • Mixed precision training (BF16/FP16) for efficiency
  • Custom attention implementation with fused operations
  • Early stopping mechanisms for optimal training
  • Gradient accumulation for effective large batch training
Architecture Specifications
Component Value
Model Type Autoregressive Transformer
Parameters ~400M
Layers 24
Hidden Size 1024
Attention Heads 16
Head Dimension 64
FFN Dimension 4096
Context Length 2048 tokens
Vocabulary Size 50,257 (GPT-2 tokenizer)
Model Benchmarks

The following benchmarks compare SnowflakeCore-G1-Tiny2 , its predecessor, and GPT-2 on key performance and text quality metrics.

Performance & Quality Metrics
Model Params Size (MB) Speed (tok/s) Vocab Div. Dist. Bigrams Dist. Trigrams Bigram Repet. Trigram Repet.
SnowflakeCore-G1-Tiny2 355.9M 1357.54 22.13 0.3440 0.7408 0.8834 0.2592 0.1166
SnowflakeCore-G1-Tiny 355.9M 1357.54 22.12 0.2780 0.6111 0.7421 0.3889 0.2579
GPT-2 (small) 124.4M 474.70 47.73 0.2590 0.6408 0.7946 0.3592 0.2054

Notes:

  • Vocabulary Diversity = unique tokens / total tokens
  • Distinct N-grams = unique n-grams / total n-grams
  • Lower repetition rates indicate better text novelty
Memory Usage (CPU)

All models report N/A for CPU memory usage across all sequence lengths.

Sequence Length SnowflakeCore-G1-Tiny SnowflakeCore-G1-Tiny2 GPT-2
128 N/A (CPU) N/A (CPU) N/A
512 N/A (CPU) N/A (CPU) N/A
1024 N/A (CPU) N/A (CPU) N/A
2048 N/A (CPU) N/A (CPU) N/A
Quick Start
Installation
pip install torch transformers # if not already installed
Basic Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
    "FlameF0X/SnowflakeCore-G1-Tiny2",
    trust_remote_code=True,
    force_download=True,
    use_safetensors=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    "FlameF0X/SnowflakeCore-G1-Tiny2",
    trust_remote_code=True,
    force_download=True,
    use_safetensors=True,
)

def custom_greedy_generate(prompt, max_length=50):
    model.eval()
    input_ids = tokenizer(prompt, return_tensors="pt").input_ids
    generated = input_ids

    with torch.no_grad():
        for _ in range(max_length):
            outputs = model(input_ids=generated)
            next_token_logits = outputs["logits"][:, -1, :]
            next_token_id = torch.argmax(next_token_logits, dim=-1).unsqueeze(-1)
            generated = torch.cat((generated, next_token_id), dim=1)

            if next_token_id.item() == tokenizer.eos_token_id:
                break

    return tokenizer.decode(generated[0], skip_special_tokens=True)

# Generate text
prompt = "Once upon a time"
result = custom_greedy_generate(prompt)
print(result)
Fine-Tuning

... (same fine-tuning code as above) ...

Training Details
Dataset
Training Configuration
  • Framework : PyTorch with mixed precision (BF16/FP16)
  • Optimizer : AdamW (learning rate: 2e-4)
  • Batch Size : 1 with gradient accumulation (32 steps)
  • Context Window : 2048 tokens
  • Validation Split : 10%
  • Early Stopping : Implemented at epoch and step levels
Performance Monitoring
  • Training loss tracked per epoch with perplexity calculation
  • Full validation after each epoch
  • Step-level monitoring every 500 steps
  • Comprehensive metrics saved in training_metrics.json
Technical Implementation
Attention Mechanism
  • Causal Masking : Supports autoregressive generation
  • Key Padding Mask : Enables batched inference
  • Scaled Dot-Product : Head dimension normalization included
Memory Optimization
  • Fused Operations : Reduces memory fragmentation
  • Mixed Precision : 30-40% memory reduction
  • Gradient Accumulation : Simulates larger batch sizes
  • Optional Quantization : Further model compression
Training Stability
  • Gradient Clipping : Prevents exploding gradients
  • Automatic Loss Scaling : Mixed precision stability
  • Early Stopping : Prevents overfitting with patience mechanisms
System Requirements
Memory Requirements
  • Training : 16-24GB VRAM (precision dependent)
  • Inference : 1-6GB VRAM for standard generation
  • Context : Maximum 2048 tokens input length
Generation Parameters

Default configuration:

{
  "do_sample": true,
  "temperature": 1.0,
  "top_p": 0.9,
  "top_k": 50,
  "max_new_tokens": 50,
  "pad_token_id": 50256,
  "eos_token_id": 50256
}
Model Files

The repository contains:

  • pytorch_model.bin - PyTorch model weights
  • model.safetensors - SafeTensors format weights
  • config.json - Model configuration
  • generation_config.json - Generation parameters
  • training_metrics.json - Training statistics
  • tokenizer.json - Tokenizer configuration
  • vocab.json & merges.txt - Vocabulary files
Limitations
  • No HuggingFace .generate() support : Use custom generation function
  • Output Quality : May produce repetitive or nonsensical text for some prompts
  • Hardware Requirements : GPU recommended for practical inference
  • Context Window : Limited to 2048 tokens
  • Dataset Dependency : Performance tied to Mixture-of-Thoughts dataset quality
Example Output
N/A
Support Me

You can support me via Ko-fi or you can try my Vast.ai template!

Small meta-data
  • Release date: July 21, 2025.

Runs of FlameF0X SnowflakeCore-G1-Tiny2 on huggingface.co

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

More Information About SnowflakeCore-G1-Tiny2 huggingface.co Model

More SnowflakeCore-G1-Tiny2 license Visit here:

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

SnowflakeCore-G1-Tiny2 huggingface.co

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

SnowflakeCore-G1-Tiny2 huggingface.co Url

https://huggingface.co/FlameF0X/SnowflakeCore-G1-Tiny2

FlameF0X SnowflakeCore-G1-Tiny2 online free

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

FlameF0X SnowflakeCore-G1-Tiny2 online free url in huggingface.co:

https://huggingface.co/FlameF0X/SnowflakeCore-G1-Tiny2

SnowflakeCore-G1-Tiny2 install

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

SnowflakeCore-G1-Tiny2 install url in huggingface.co:

https://huggingface.co/FlameF0X/SnowflakeCore-G1-Tiny2

Url of SnowflakeCore-G1-Tiny2

SnowflakeCore-G1-Tiny2 huggingface.co Url

Provider of SnowflakeCore-G1-Tiny2 huggingface.co

FlameF0X
ORGANIZATIONS

Other API from FlameF0X

huggingface.co

Total runs: 164
Run Growth: 138
Growth Rate: 84.15%
Updated:July 17 2026
huggingface.co

Total runs: 144
Run Growth: 49
Growth Rate: 34.03%
Updated:May 26 2026
huggingface.co

Total runs: 114
Run Growth: -76
Growth Rate: -66.67%
Updated:December 01 2025
huggingface.co

Total runs: 112
Run Growth: 16
Growth Rate: 14.29%
Updated:October 31 2025
huggingface.co

Total runs: 109
Run Growth: 0
Growth Rate: 0.00%
Updated:July 25 2026
huggingface.co

Total runs: 70
Run Growth: 70
Growth Rate: 100.00%
Updated:December 03 2025
huggingface.co

Total runs: 62
Run Growth: 12
Growth Rate: 19.35%
Updated:November 29 2025
huggingface.co

Total runs: 50
Run Growth: 47
Growth Rate: 94.00%
Updated:June 29 2025
huggingface.co

Total runs: 44
Run Growth: 11
Growth Rate: 25.00%
Updated:November 25 2025
huggingface.co

Total runs: 39
Run Growth: -135
Growth Rate: -346.15%
Updated:October 23 2025
huggingface.co

Total runs: 36
Run Growth: 20
Growth Rate: 55.56%
Updated:February 23 2026
huggingface.co

Total runs: 30
Run Growth: -254
Growth Rate: -846.67%
Updated:May 20 2026
huggingface.co

Total runs: 21
Run Growth: -10
Growth Rate: -47.62%
Updated:October 17 2025
huggingface.co

Total runs: 16
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2025
huggingface.co

Total runs: 14
Run Growth: -272
Growth Rate: -1942.86%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 06 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 29 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 31 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 17 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 07 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 31 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 19 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 25 2026