Views
No views yet
google/gemma-3-270m with parallel linearized attention (TPTT 😊) and PEFT.| Subfolder | Max Self Attn Length | Mag Weight | Cross Gate | Max Chunk Size | Bidirectional | LoRA | Description |
|---|---|---|---|---|---|---|---|
| delta_rule | 8192 (default) | 0.5 | False | 64 | False | Yes | Parallel linearized attention with delta_rule operator |
| delta_rule_gelu | 8192 (default) | 0.5 | False | 64 | False | Yes | Non-linear operator with gelu activation |
| delta_product | 8192 (default) | 0.5 | False | 64 | False | Yes | Second order operator with derivative trick |
| delta_product_r | 8192 (default) | 0.5 | False | 64 | False | Yes | Second order operator with rotative trick |
| delta_product_c | 8192 (default) | 0.5 | False | 64 | False | Yes | Second order operator with combined trick |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4"ffurfaro/Titanesque-gemma-3-270m",
5subfolder="tptt_subfolder", # see in repo tree
6trust_remote_code=True
7)
8tokenizer = AutoTokenizer.from_pretrained("ffurfaro/google/gemma-3-270m")
9
10prompt = "Your prompt here"
11inputs = tokenizer(prompt, return_tensors="pt")
12outputs = model.generate(**inputs, max_new_tokens=100)
13print(tokenizer.decode(outputs, skip_special_tokens=True))
14