Downloads · 30 days
25
6% of all-time downloads
BEE-spoke-data/phi-1bee5
phi-1bee5 is a text generation model from BEE-spoke-data. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Where Code Meets Beekeeping: An Unbeelievable Synergy!
Downloads · 30 days
25
6% of all-time downloads
All-time downloads
388
Public
Parameters
1.4B
5.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors5.7 GB · 100%
From the Hugging Face model README
<a href="https://colab.research.google.com/gist/pszemraj/7ea68b3b71ee4e6c0729d2318f3f4158/we-bee-testing.ipynb"> <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/> </a>Where Code Meets Beekeeping: An Unbeelievable Synergy!
Have you ever found yourself in the depths of a debugging session and thought, "I wish I could be basking in the glory of a blooming beehive right now"? Or maybe you've been donning your beekeeping suit, puffing on your smoker, and longed for the sweet aroma of freshly written code?
Well, brace yourselves, hive-minded humans and syntax-loving sapiens, for phi-1bee5, a groundbreaking transformer model that's here to disrupt your apiary and your IDE!
This model is a fine-tuned version of microsoft/phi-1_5 on the BEE-spoke-data/bees-internal dataset.
It achieves the following results on the evaluation set:
load model:
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
# !pip install -U -q transformers accelerate einops
checkpoint = "BEE-spoke-data/phi-1bee5"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(
checkpoint,
device_map="auto",
torch_dtype=torch.float16,
trust_remote_code=True
)
Run inference:
prompt = "Today was an amazing day because"
inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to(
model.device
)
outputs = model.generate(
**inputs, do_sample=True, max_new_tokens=128, epsilon_cutoff=7e-4
)
result = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
print(result)
# output will probably contain a story/info about bees
While the full dataset is not yet complete and therefore not yet released for "safety reasons", you can check out a preliminary sample at: bees-v0
The following hyperparameters were used during training: