---
title: Sage-Text-4B
canonical_url: "https://www.modelscope.ai/models/Sage-Software/Sage-Text-4B"
md_url: "https://www.modelscope.ai/models/Sage-Software/Sage-Text-4B.md"
repository: Sage-Software/Sage-Text-4B
last_updated: 2026-06-15
pipeline_tag: text-generation
tasks:
  - text-generation
model_type:
  - sage
architectures:
  - SageForCausalLM
library_name:
  - pytorch
frameworks:
  - Pytorch
downloads: 0
stars: 0
---

# Sage-Text-4B

> Sage-Text-4B - An open-source model by Sage-Software on ModelScope. Sage-Text-4B is a frontier text model that has access text web search, and also talks in 50+ languages, across Chinese, English, Spanish, and many more.

- **Repository**: Sage-Software/Sage-Text-4B
- **Tasks**: text-generation
- **Downloads**: 0
- **Stars**: 0
- **Last updated**: 2026-06-15

Source: https://www.modelscope.ai/models/Sage-Software/Sage-Text-4B

---

# Sage-Text-4B

Sage-Text-4B is a general-purpose text generation model designed for:

- Coding assistance
- Web knowledge tasks
- Content generation
- Instruction following
- General reasoning

## Features

- 4B Parameters
- Long Context Support
- Instruction Tuned
- Coding Optimized

## Example

```python
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "yourname/Sage-Text-4B"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

prompt = "Write a Python web server."
inputs = tokenizer(prompt, return_tensors="pt")

outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0]))
```

## License

Apache 2.0
