eor
253
license:apache-2.0
by
eorchat
Other
OTHER
1.5B params
New
253 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
4GB+ RAM
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
2GB+ RAM
Code Examples
Usagepythonpytorch
import torch
import tiktoken
from model import Eor, EorConfig
# 1. Initialize Config and Model
config = EorConfig()
model = Eor(config)
# 2. Load Weights
state_dict = torch.hub.load_state_dict_from_url(
"https://huggingface.co/eorchat/eor/resolve/main/pytorch_model.bin",
map_location="cpu"
)
model.load_state_dict(state_dict)
model.eval()
# 3. Generate Text
enc = tiktoken.get_encoding("gpt2")
prompt = "User: Hello, who are you?\nEor:"
input_ids = torch.tensor(enc.encode_ordinary(prompt)).unsqueeze(0)
# Generate
output_ids = model.generate(input_ids, max_new_tokens=50, temperature=0.7)
print(enc.decode(output_ids[0].tolist()))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.