Instructions to use tester-123456789/tiny-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tester-123456789/tiny-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="tester-123456789/tiny-model", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tester-123456789/tiny-model", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
TinyModel
A small MLP (100 → 200 → 10) using ReLU and Softmax, designed as a simple example for publisher workflows.
Intended Uses & Limitations
This model is purely educational and not trained on real-world data. 🧪 It is not suitable for production tasks or any mission-critical usage.
Usage
import torch
from tiny_model import TinyModel
model = TinyModel()
state = torch.load(
"https://huggingface.co/tester-123456789/tiny-model/resolve/main/pytorch_model.bin",
map_location="cpu",
weights_only=True
)
model.load_state_dict(state)
model.eval()
x = torch.randn(1, 100)
y = model(x)
print(y)
- Downloads last month
- 1