swift-ministral-8b-deepscaler
1
license:apache-2.0
by
Aster2024
Other
OTHER
8B params
New
0 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
18GB+ RAM
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
8GB+ RAM
Code Examples
Usagepythonpytorch
import torch
import torch.nn as nn
class LinearRewardModel(nn.Module):
def __init__(self, feature_dim, disable_gate=False):
super(LinearRewardModel, self).__init__()
self.disable_gate = disable_gate
if not disable_gate:
self.fused_layer = nn.Linear(feature_dim, 2)
else:
self.reward_layer = nn.Linear(feature_dim, 1)
def forward(self, x):
# ... logic ...
pass
model = LinearRewardModel(feature_dim=151552, disable_gate=False)
sd = torch.load("swift_reward_model.pt")
model.load_state_dict(sd)Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.