Run this model with HF Jobs
Run KilmaAI/Sadim-77M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/KilmaAI/Sadim-77M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KilmaAI/Sadim-77M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use KilmaAI/Sadim-77M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KilmaAI/Sadim-77M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="KilmaAI/Sadim-77M")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("KilmaAI/Sadim-77M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload architecture.py with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
import torchimport torch.nn as nn
class ResidualBlock(nn.Module): def __init__(self, dim): super().__init__() self.ln = nn.LayerNorm(dim) self.fc = nn.Sequential( nn.Linear(dim, dim), nn.GELU(), nn.Linear(dim, dim) ) def forward(self, x): return x + self.fc(self.ln(x))
class SADIM_V2_Expert(nn.Module): def __init__(self, input_dim=12, latent_dim=64): super().__init__() h = 3584 self.encoder = nn.Sequential( nn.Linear(input_dim, h), nn.LayerNorm(h), nn.GELU(), nn.Linear(h, h), nn.LayerNorm(h), nn.GELU(), ResidualBlock(h) ) self.fc_mu = nn.Linear(h, latent_dim) self.fc_logvar = nn.Linear(h, latent_dim) self.decoder = nn.Sequential( nn.Linear(latent_dim, h), nn.GELU(), nn.Linear(h, h), nn.LayerNorm(h), nn.GELU(), ResidualBlock(h), nn.Linear(h, input_dim) )
def forward(self, x): h = self.encoder(x) mu, logvar = self.fc_mu(h), self.fc_logvar(h) logvar = torch.clamp(logvar, -10, 10) std = torch.exp(0.5 * logvar) z = mu + torch.randn_like(mu) * std return self.decoder(z), mu, logvar
# --- مذكرة المعالجة المسبقة (Preprocessing Guide) ---# للحصول على نتائج صحيحة غداً، استخدم هذه القسمة:# ra, l: /360.0 | dec, b: /90.0 | d_pc: /10000.0 # pmra, pmdec: /500.0 | x, y, z: /15000.0architecture.pyAdded+53