GLM-4.5-Air-NotaMoeQuant-Int4
53
1
license:cc-by-nc-4.0
by
nota-ai
Language Model
OTHER
1B params
New
53 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
3GB+ RAM
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
1GB+ RAM
Code Examples
Usagepythontransformers
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
MODEL_NAME = "nota-ai/GLM-4.5-Air-NotaMoeQuant-Int4"
# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(
MODEL_NAME,
dtype="auto",
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
MODEL_NAME,
dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
model.eval()
# prepare the model input
prompt = "What is large language model?"
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
return_token_type_ids=False
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# conduct text completion
generated_ids = model.generate(
model_inputs['input_ids'],
attention_mask=model_inputs['attention_mask'],
max_new_tokens=150
)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.