File size: 996 Bytes
cbc6082 0b5e0d3 f7d2a64 cbc6082 0b5e0d3 c2d50ba 8ea399d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ---
tags:
- model_hub_mixin
- pytorch_model_hub_mixin
license: wtfpl
datasets:
- bobox/OpenbookQA-4ST
language:
- en
pipeline_tag: feature-extraction
---
# PurpleGloVe
Simple implementation of GloVe using PyTorch and modern (2026) HuggingFace devkit such as Datasets, Tokenizers, and Safetensors.
This repository is suitable for any beginners trying to understand how to incorporate HuggingFace into their workflow with PyTorch.
We will be demonstrating the use of saved tokenizer and config by calling the `from_pretrained` method of a model or a tokenizer class.
A very first-principled use of HF devkit made easy to understand.
## Usage
```sh
uv run app.py
```
See `train.ipynb` for training recipe.
## Notes on Variable Misnaming
I initially written W_i, W_j, B_i, and B_j like so.
But in the paper, W_j and B_j is actually also subscript `i` but with tidle above W and B to denote the context word vector.
The `app.py` script already has a note for this, the script works just fine. |