Views
No views yet
distilbert-base-uncased. Unlike generative compressors that rewrite text, Bakwas is purely extractive. It predicts a binary mask for every token: Keep (Signal) or Discard (Bakwas). This ensures that the original prompt's structure remains familiar to the downstream LLM's training data.1from transformers import AutoTokenizer, AutoModelForTokenClassification
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("meet447/bakwas-v1-alpha")
5model = AutoModelForTokenClassification.from_pretrained("meet447/bakwas-v1-alpha")
6
7prompt = "Actually, I was just wondering if you could potentially help me with a small tiny Python script."
8inputs = tokenizer(prompt, return_tensors="pt")
9
10with torch.no_grad():
11 logits = model(**inputs).logits
12
13# 1 = Keep, 0 = Bakwas
14predictions = torch.argmax(logits, dim=-1)