Token Classification
Transformers
Safetensors
distilbert
prompt-compression
efficiency
context-engineering
mlops
Instructions to use meet447/bakwas-v1-alpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meet447/bakwas-v1-alpha with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="meet447/bakwas-v1-alpha")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("meet447/bakwas-v1-alpha") model = AutoModelForTokenClassification.from_pretrained("meet447/bakwas-v1-alpha") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ Bakwas v1 Alpha is a token classification model fine-tuned from `distilbert-base
|
|
| 30 |
|
| 31 |
### Model Sources
|
| 32 |
|
| 33 |
-
- **Demo:**
|
| 34 |
- **Philosophy:** "Context Engineering over Prompt Engineering."
|
| 35 |
|
| 36 |
## Uses
|
|
@@ -63,8 +63,8 @@ Users should implement a "Structure Guard" (keeping punctuation) and a "Heuristi
|
|
| 63 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 64 |
import torch
|
| 65 |
|
| 66 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 67 |
-
model = AutoModelForTokenClassification.from_pretrained("
|
| 68 |
|
| 69 |
prompt = "Actually, I was just wondering if you could potentially help me with a small tiny Python script."
|
| 70 |
inputs = tokenizer(prompt, return_tensors="pt")
|
|
|
|
| 30 |
|
| 31 |
### Model Sources
|
| 32 |
|
| 33 |
+
- **Demo:** https://huggingface.co/spaces/meet447/Bakwas-v1-alpha-demo
|
| 34 |
- **Philosophy:** "Context Engineering over Prompt Engineering."
|
| 35 |
|
| 36 |
## Uses
|
|
|
|
| 63 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 64 |
import torch
|
| 65 |
|
| 66 |
+
tokenizer = AutoTokenizer.from_pretrained("meet447/bakwas-v1-alpha")
|
| 67 |
+
model = AutoModelForTokenClassification.from_pretrained("meet447/bakwas-v1-alpha")
|
| 68 |
|
| 69 |
prompt = "Actually, I was just wondering if you could potentially help me with a small tiny Python script."
|
| 70 |
inputs = tokenizer(prompt, return_tensors="pt")
|