Downloads · 30 days
6
2% of all-time downloads
edmundmills/experience-model-v1
experience-model-v1 is a text classification model from edmundmills. Use it when you need a label for a piece of text. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
6
2% of all-time downloads
All-time downloads
327
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.bin738 MB · 100%
From the Hugging Face model README
This model is intended to detect the presence of a present-moment experience a human or animal is experiencing in a sentence.
Given a sentence, the model gives logits of whether or not that sentence contains a present-moment experience. Higher values correspond to the sentence having that experience.
model = transformers.AutoModelForSequenceClassification.from_pretrained('edmundmills/experience-model-v1') # type: ignore
tokenizer = transformers.AutoTokenizer.from_pretrained('edmundmills/experience-model-v1', use_fast=False) # type: ignore
sentence = "I am eating food."
tokenized = tokenizer([sentence], return_tensors='pt', return_attention_mask=True)
input_ids, masks = tokenized['input_ids'], tokenized['attention_mask']
with torch.inference_mode():
out = model(input_ids, attention_mask=masks)
probs = out.logits.sigmoid().squeeze().item()
print(probs) # 0.92
This model was fine-tuned from 'microsoft/deberta-v3-large'.
More information needed
This model was trained on 745 training samples, with ~10% of them containing present moment experiences.
The model was fine-tuned using https://github.com/AlignmentResearch/experience-model. It used BCE Loss.
It used the following hyperparameters: learning_rate: 2.0 e-05 batch_size: 16 epochs: 200 weight_decay: 0.01