Text Generation
Transformers.js
PyTorch
ONNX
Safetensors
English
gpt2
text-generation-inference
distillation
grpo
vae
agent
education
SLM
small
tiny
smol
distilled
micro
study
testing
blackbox
offline
localdb
Instructions to use webxos/microd_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use webxos/microd_v1 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'webxos/microd_v1');
| # modeling_micro_distill.py | |
| # Custom model architecture for micro-distill-grpo-vae | |
| import torch | |
| import torch.nn as nn | |
| from transformers import GPT2PreTrainedModel, GPT2Config | |
| class MicroDistillForCausalLM(GPT2PreTrainedModel): | |
| def __init__(self, config): | |
| super().__init__(config) | |
| self.config = config | |
| # ... modeling code ... | |
| def forward(self, input_ids=None, attention_mask=None, **kwargs): | |
| # Forward pass implementation | |
| pass |