XVERSE-Ent-A5.7B
1
license:apache-2.0
by
xverse
Language Model
OTHER
5.7B params
New
1 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
13GB+ RAM
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
6GB+ RAM
Code Examples
Usagepythontransformers
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("xverse/XVERSE-Ent-A5.7B")
model = AutoModelForCausalLM.from_pretrained("xverse/XVERSE-Ent-A5.7B", trust_remote_code=True, torch_dtype=torch.bfloat16, device_map='auto')
model = model.eval()
inputs = tokenizer('Time crept by, second after second. The sound of rain, the refrigerator’s occasional hum, the rush of water through unseen pipes in the walls—everything seemed amplified. Lin Yu realized he was counting his breaths, as if the moment he stopped, the room would be filled with a presence that did not belong to him.', return_tensors='pt').input_ids
inputs = inputs.cuda()
generated_ids = model.generate(inputs, max_new_tokens=70, eos_token_id=tokenizer.eos_token_id, repetition_penalty=1.1)
print(tokenizer.batch_decode(generated_ids, skip_special_tokens=True))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.