Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: apache-2.0

Spec

  • Base: Qwen2.5-3B
  • Params: 1.70B (kept 18/36 decoder layers; drop middle, keep head+tail)
  • Healing: SFT on SEA-PILE v2 Thai (~8k docs), bf16
  • Requires: transformers>=4.44, accelerate

Usage

python

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
m = "Chokun00032/qwen-1b-pruned-th"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForCausalLM.from_pretrained(m, torch_dtype=torch.bfloat16, device_map="cuda")
ids = tok("ปัญญาประดิษฐ์ คือ", return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=120, do_sample=True,
temperature=0.7, top_p=0.9, repetition_penalty=1.3)
print(tok.decode(out[0], skip_special_tokens=True))

Notes

  • Pruned base healed on raw corpus: Thai grammar is fluent, but factual/arithmetic ability is weak.
  • Use repetition_penalty>=1.2 to avoid loops.
  • Best used as a base for further instruction fine-tuning.

Model provider

Chokun00032

Model tree

Base

this model

Modalities

Input

Text

Output

Text

Pricing

Dedicated Endpoints

View details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today