Downloads · 30 days
0
Monipoo0904/MVP-B2
MVP-B2 is a machine learning model from Monipoo0904. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Local VS Code version (not Colab) -- plain Python scripts, pushes to Hugging Face directly from your machine.
Downloads · 30 days
0
Access
Public
Updated Sep 11, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py20.4 KB · 71%
From the Hugging Face model README
Local VS Code version (not Colab) -- plain Python scripts, pushes to Hugging Face directly from your machine.
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
huggingface-cli login # paste a write token when prompted
export MYVILLAGE_API_KEY=your_moments_read_key # NOT the one from the MCP debugging saga -- a fresh key with moments:read scope
python pull_moments.py # produces b2_moments.jsonl, prints real momentType values found
python train.py # trains, evaluates, asks before publishing
Before running train.py for real, open train.py and change HF_REPO to
your actual Hugging Face username/repo.
momentType as open-ended ("such as ... and others"),
unlike A2's fixed 7-class list. train.py reads whatever labels actually
appear in b2_moments.jsonl and builds the classifier around those.train.py is deliberately generic
placeholder text, only there to prove the pipeline runs, never to be
mistaken for a real training result.pull_moments.py hits
portal.myvillageproject.ai with a normal API key as a Bearer token --
a different, so far untested-but-promising path compared to the
mcp.myvillageproject.ai auth issues hit on A2.GET /api/network/moments isn't fully confirmed --
pull_moments.py prints the raw first-page response so you can check/fix
the extraction logic if it doesn't match.originalText, the API reference's POST example calls it description.
The script tries both.momentType values from pull_moments.py's output,
go back into train.py's edge_cases list and replace the two generic
placeholders with real ambiguous cases (e.g. two semantically similar
types that might get confused) -- the current list is intentionally
minimal since we don't know the real label set yet.Before pushing anything to Hugging Face -- model or dataset -- manually
check that no villager names, contact info, or other unnecessary
identifiers ended up in the text field. This can't be fully automated;
it needs a human read-through of a sample.