Downloads · 30 days
39
7% of all-time downloads
weiser/82M-0.4
82M-0.4 is a text generation model from weiser. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository hosts a small language model developed as part of the TinyLLM framework ([arxiv link]). These models are specifically designed and fine-tuned with sensor data to support embedded sensing applications.…
Downloads · 30 days
39
7% of all-time downloads
All-time downloads
563
Public
Parameters
82.1M
164 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors164 MB · 99%
From the Hugging Face model README
This repository hosts a small language model developed as part of the TinyLLM framework ([arxiv link]). These models are specifically designed and fine-tuned with sensor data to support embedded sensing applications. They enable locally hosted language models on low-computing-power devices, such as single-board computers. The models, based on the GPT-2 architecture, are trained using Nvidia's H100 GPUs. This repo provides base models that can be further fine-tuned for specific downstream tasks related to embedded sensing.
We want to acknowledge the open-source frameworks llm.c and llama.cpp and the sensor dataset provided by SHL, which were instrumental in training and testing these models.
The model can be used in two primary ways:
With Hugging Face’s Transformers Library
from transformers import pipeline
import torch
path = "tinyllm/82M-0.4"
prompt = "The sea is blue but it's his red sea"
generator = pipeline("text-generation", model=path,max_new_tokens = 30, repetition_penalty=1.3, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto")
print(generator(prompt)[0]['generated_text'])
With llama.cpp Generate a GGUF model file using this tool and use the generated GGUF file for inferencing.
python3 convert_hf_to_gguf.py models/mymodel/
This model is intended solely for research purposes.