Views
No views yet
Trained on determination, fueled by suffering, powered by free TPUs.
vocab_size = 16,384)1{
2 "vocab_size": 16384,
3 "max_len": 2048,
4 "dtype": "bfloat16",
5 "num_heads": 8,
6 "attention_dim": 768,
7 "attn_chunks": 1,
8 "gqa_repeats": 2,
9 "use_flash_attention": false,
10 "num_blocks": 12,
11 "ff_dim": 2304,
12 "dropout_rate": 0.05,
13 "emb_init_range": 0.02,
14}
151{
2 "peaklr":1.5e-3,
3 "warmup_percent":0.02,
4 "min_value":1.8e-4,
5 "training_decay":"cosine",
6 "weight_decay": 0.1,
7 "min_warmup_value":6e-4,
8 "b1": 0.95,
9 "b2": 0.98,
10 "eps": 1.5e-8,
11 "opt_dtype": "bfloat16"
12}3.02
stats.json in the model files.1!pip install BwETAF==0.6
2# If you are having any troubles with compatablility issues with the model like jax, hf and BwETAF run
3!pip install --upgrade jax jaxlib flax tiktoken jax_cuda12_plugin datasets flash-attention-jax1from BwETAF.api.predictv2 import KV_caching
2import BwETAF
3import jax
4from BwETAF.tokenizer.main import load
5
6model = BwETAF.load_hf("WICKED4950/BwETAFv3-97M",jax.numpy.bfloat16)
7tokenizer = load("Loaded_model")
8
9thing = KV_caching(model, top_p=0.92,temperature=0.8)
10prompt = """The night sky was alive with lightning, each flash revealing the jagged cliffs ahead. I gripped the letter tighter, knowing it held the answer to everything. The wind screamed as I took a step closer to the edge"""
11input = tokenizer.encode(prompt)
12print("The input is",input)
13the_thing = thing(jax.numpy.array(input),max_len=128)
14print(prompt,end="")
15for i in the_thing:
16 print(tokenizer.decode(i), end="")
17print()
18
19
20# To get the params or jax struct
21params = model.trainable_variables
22structure = model.model_struct☁️ Colab support and examples coming soon!
fused_computation.1 (if you spot me lurking in any AI-related servers)