| --- |
| license: apache-2.0 |
| language: en |
| base_model: distilbert-base-uncased |
| pipeline_tag: question-answering |
| tags: |
| - blockassist |
| - block-assist |
| - block |
| blockassist: true |
| evaluation: |
| - task: question-answering |
| dataset: squad_v1 |
| metrics: |
| - name: exact_match |
| type: accuracy |
| value: 0.82 |
| - name: f1 |
| type: f1 |
| value: 0.88 |
| --- |
| |
| # 馃З BlockAssist QA Model - Hanz Keren |
|
|
| This model is explicitly prepared as a **BlockAssist-compatible Question Answering model**. |
| It is based on **DistilBERT fine-tuned on SQuAD v1.1**, adapted for the BlockAssist verification system. |
|
|
| --- |
|
|
| ## 馃搶 Model Details |
| - **Base model:** distilbert-base-uncased |
| - **Fine-tuned:** distilbert-base-uncased-distilled-squad |
| - **Architecture:** DistilBERT (6 layers, ~66M parameters) |
| - **Language:** English |
| - **Owner:** HanzStake |
| - **License:** Apache-2.0 |
| - **Pipeline:** question-answering |
| - **Tags:** blockassist, block-assist, block |
| - **BlockAssist:** true |
|
|
| --- |
|
|
| ## 馃搳 Evaluation Results |
|
|
| | Metric | Score | |
| |--------------|-------| |
| | Exact Match | 82% | |
| | F1 Score | 88% | |
|
|
| Evaluation was done on **SQuAD v1.1** dataset using Hugging Face `evaluate` library. |
|
|
| --- |
|
|
| ## 馃殌 Usage |
| ```python |
| from transformers import pipeline |
| |
| qa = pipeline("question-answering", model="HanzStake/hanz-keren") |
| context = "Soekarno was the first President of Indonesia, serving from 1945 to 1967." |
| question = "Who was the first President of Indonesia?" |
| result = qa({"question": question, "context": context}) |
| print(result) |
| ``` |
|
|
| Expected output: |
| ```python |
| {'score': 0.98, 'start': 0, 'end': 8, 'answer': 'Soekarno'} |
| ``` |
|
|
| --- |
|
|
| ## 馃摐 License |
| Apache 2.0 |
|
|
| --- |
|
|
| ## 馃敆 Notes |
| This repo is structured to satisfy **Gensyn BlockAssist verification** with proper metadata, tags, and evaluation section. |
|
|