/ Модель

Характеристики

Контекст
1 024 токена
Параметры
351 млн
Лицензия
Apache 2.0
Архитектура
clokcem · dense
Библиотека
transformers
Опубликована
12 авг 2026

CLOK-CEM

Генерация текстаТекст → текст3 профессии

ClokCEM — компактная языковая модель для генерации ответов службы поддержки, классификации намерений и оценки качества ответов.

36скачиваний за 30 дней1лайквеса обновлены15 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

ClokCEM (Customer Executive Model) — языковая модель, разработанная для поддержки клиентов. По README, модель обучена с нуля на 21 подборке данных о клиентской поддержке; метаданные указывают 351,1 млн параметров и лицензию Apache-2.0. Это авторегрессионный трансформер с архитектурой GQA, SwiGLU, RMSNorm и RoPE, доступный в формате Safetensors и рассчитанный на контекст до 1 024 токенов.

Модель предназначена для генерации ответов в диалогах с клиентами, классификации намерений по 27 категориям и оценки качества ответа. README также описывает модуль, который выдаёт оценку числа шагов рассуждения и уверенности в качестве ответа. Подходит для сценариев автоматизации службы поддержки и обработки многоходовых диалогов.

README сообщает о преимущественной ориентации на английский язык и частичной поддержке индийских языков. К ограничениям относятся короткий контекст, неоднозначность классификации пересекающихся намерений и возможность генерации недостоверных сведений; для неанглоязычного применения могут потребоваться дополнительные обучение и проверка. Условия использования — лицензия Apache-2.0.

Сценарии применения

  • генерация ответов клиентам в чате поддержки
  • классификация обращений по намерениям
  • ведение многоходовых диалогов с клиентами
  • оценка качества сгенерированного ответа
  • определение запросов о заказе, возврате или возмещении

Ограничения

Контекст ограничен 1 024 токенами, а запросы с пересекающимися намерениями могут классифицироваться неоднозначно. Модель может выдавать правдоподобные, но неверные сведения; английский является основным языком, поддержка индийских языков частичная.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ClokCEM Banner

ClokCEM — Customer Executive Model

354M parameter language model trained from scratch for enterprise customer support, with native intent classification, chain-of-thought reasoning, and quality gating.

ClokCEM (Customer Executive Model) is a decoder-only transformer built specifically for customer care workflows. Unlike general-purpose chatbots fine-tuned for CS, ClokCEM was pre-trained from random initialization on 21 curated customer support datasets spanning multiple industries, languages, and interaction patterns. It learns to classify user intent across 27 categories, reason through multi-turn conversations, and self-assess response quality — all within a single forward pass.


Model Summary

AttributeValue
Parameters353,859,869
Hidden Size1,536
Layers16
Attention Heads16
KV Heads4 (Grouped Query Attention)
Head Dimension96
Intermediate Size2,816
Vocabulary32,000
Context Length1,024 tokens
ArchitectureGQA + SwiGLU + RMSNorm + RoPE
PrecisionFP16
Weight TyingYes (embed_tokens ↔ lm_head)
Training Steps50,000
Best Loss0.765
Final Intent Accuracy99.88%

What Makes ClokCEM Different

ClokCEM is trained from random initialization it learns customer support patterns natively rather than retrofitting general language understanding. This means:

  • Architecture optimized specifically for CS workflows
  • Intent classification built into the model head, not bolted on as a separate classifier
  • Thinking capability emerges from training, not prompt engineering

Native Intent Classification

ClokCEM classifies user intent across 27 categories in a single forward pass, without requiring separate classifier models or prompt templates:

IntentCategoryExample Query
order_statusORDER"Where is my order?"
return_requestORDER"I want to return this product"
refund_statusORDER"When will I get my refund?"
product_infoPRODUCT"What are the specs of this phone?"
price_inquiryPRODUCT"How much does this cost?"
complaintSUPPORT"Your service is terrible"
technical_supportSUPPORT"The app keeps crashing"
account_helpACCOUNT"How do I reset my password?"
billing_queryACCOUNT"I was charged twice"
cancellationACCOUNT"I want to cancel my subscription"
feedbackFEEDBACK"Can I speak to a manager?"
escalationSUPPORT"This needs to be escalated"
shipping_querySHIPPING"When will my delivery arrive?"
payment_issuePAYMENT"My payment failed"
discount_couponPROMO"Do you have any coupons?"
warranty_claimPRODUCT"This product is under warranty"
appointment_bookingBOOKING"I need to schedule an appointment"
schedule_changeBOOKING"Can I reschedule?"
prescription_queryHEALTH"I need a prescription refill"
insurance_claimINSURANCE"How do I file a claim?"
loan_inquiryBANKING"What are your loan rates?"
balance_checkBANKING"What's my account balance?"
plan_changeTELECOM"I want to upgrade my plan"
network_issueTELECOM"My internet is not working"
new_connectionTELECOM"I want a new connection"
porting_requestTELECOM"How do I port my number?"
general_queryGENERAL"What are your business hours?"

Thinking Head

ClokCEM includes a dedicated thinking module that processes intermediate hidden states (from layer 12) to produce:

  • Thinking Steps: A scalar indicating how many reasoning steps the model believes are needed for the query
  • Quality Score: A confidence measure (0–1) of the model's self-assessed response quality
  • Intent Logits: 27-class probability distribution over customer care intents

These are computed in parallel with the main language modeling head, adding negligible overhead.


Training Details

Hardware

  • Platform: NVIDIA T4
  • Total Training Time: ~3 weeks
  • Batch Size: 32 per GPU (64 effective with DDP)
  • Mixed Precision: FP16 with gradient scaling
  • Gradient Checkpointing: Enabled (reduces VRAM by ~40%)

Optimizer & Schedule

  • Optimizer: AdamW (β₁=0.9, β₂=0.95, ε=1e-8)
  • Learning Rate: 3e-4 → 1e-5 (cosine decay with warmup)
  • Weight Decay: 0.1
  • Label Smoothing: 0.05
  • Gradient Clipping: Max norm 1.0

Training Progression

StepLossIntent AccuracyLearning Rate
1008.2055.3%1.5e-5
5005.1573.6%7.5e-5
1,0004.2985.0%1.5e-4
5,0002.2995.0%2.5e-4
10,0001.7298.5%2.0e-4
25,0001.0599.5%1.2e-4
50,0000.765 (best) / 1.74 (final)99.88%1.0e-5

The loss curve shows a characteristic pattern: rapid descent from 8.2 → 2.0 in the first 5K steps as the model learns basic language patterns, followed by a steady decline to 0.765 as it masters intent classification and response generation. The final loss of 1.74 reflects the model's behavior at convergence — it has learned to produce shorter, more focused responses rather than maximizing likelihood on all tokens.

Training Data

ClokCEM was trained on 21 curated datasets covering multiple customer support domains, instruction following, and reasoning tasks.


Architecture

StageComponentDetails
1. InputToken EmbeddingEmbedding(32000, 1536) with dropout 0.1
2. TransformerRMSNorm + GQA + RoPE + SwiGLURepeated 16 times, each layer:
Attention16 query heads, 4 KV heads, head dim 96
Feed-ForwardSwiGLU with intermediate size 2816
Layer 12 outputRouted to Thinking Head
3. OutputFinal RMSNormNormalizes final hidden states
LM HeadLinear(1536, 32000) tied with embedding
4. ThinkingIntent Classifier1536 → 768 → 384 → 27 (27 intent classes)
Thinking Steps1536 → 384 → 1 (scalar step count)
Quality Gate1536 → 384 → 1 + Sigmoid (0–1 score)

Key Components

Grouped Query Attention (GQA)

  • 16 attention heads, 4 KV heads
  • 4× memory compression vs standard MHA
  • Enables 1,024 token context on T4 GPUs

SwiGLU Feed-Forward

  • Gate-based activation (SiLU gating)
  • 2,816 intermediate dimensions
  • More expressive than standard ReLU FFN

RMSNorm

  • Normalizes by root mean square (no mean centering)
  • Faster training, more stable gradients
  • Replaces LayerNorm in all positions

RoPE (Rotary Position Embeddings)

  • Position-aware attention without learned embeddings
  • θ=10,000 for long-range dependency modeling
  • Applied to Q and K projections

Flash Attention

  • Uses PyTorch's F.scaled_dot_product_attention
  • Memory-efficient attention computation
  • Automatic causal masking

Usage

Installation

pip install transformers torch safetensors

Loading the Model

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "clokai/CLOK-CEM",
    torch_dtype=torch.float16,
    trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("clokai/CLOK-CEM")

Text Generation

# Chat format with system prompt
prompt = "<|system|>You are a helpful customer care assistant for an e-commerce company.<|user|>Where is my order?<|assistant|>"
inputs = tokenizer(prompt, return_tensors="pt")

with torch.no_grad():
    outputs = model.generate(
        **inputs,
        max_new_tokens=256,
        temperature=0.7,
        top_p=0.9,
        top_k=50,
        repetition_penalty=1.1,
        do_sample=True,
    )

response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
print(response)

Intent Classification

with torch.no_grad():
    out = model(input_ids)

# Get predicted intent
intent_logits = out["intent_logits"]
intent_probs = torch.softmax(intent_logits, dim=-1)
predicted_intent_id = intent.argmax(-1).item()
confidence = intent_probs[0, predicted_intent_id].item()

# Map to intent name
intent_classes = [
    "order_status", "return_request", "refund_status", "product_info",
    "price_inquiry", "complaint", "technical_support", "account_help",
    "billing_query", "cancellation", "feedback", "escalation",
    "shipping_query", "payment_issue", "discount_coupon", "warranty_claim",
    "appointment_booking", "schedule_change", "prescription_query",
    "insurance_claim", "loan_inquiry", "balance_check", "plan_change",
    "network_issue", "new_connection", "porting_request", "general_query",
]

print(f"Intent: {intent_classes[predicted_intent_id]}")
print(f"Confidence: {confidence:.2%}")

Thinking Analysis

with torch.no_grad():
    out = model(input_ids)

thinking_steps = out["thinking_steps"].item()
quality_score = out["quality_score"].item()

print(f"Recommended thinking steps: {thinking_steps:.4f}")
print(f"Response quality confidence: {quality_score:.4f}")

Multi-Turn Conversation

def chat(model, tokenizer, history, user_message):
    # Format with chat template
    prompt = "<|system|>You are a helpful customer care assistant.<|user|>"
    for i, msg in enumerate(history):
        if i % 2 == 0:
            prompt += f"{msg}<|assistant|>"
        else:
            prompt += f"{msg}<|user|>"
    prompt += f"{user_message}<|assistant|>"
    
    inputs = tokenizer(prompt, return_tensors="pt")
    
    with torch.no_grad():
        outputs = model.generate(
            **inputs,
            max_new_tokens=256,
            temperature=0.7,
            top_p=0.9,
            repetition_penalty=1.1,
        )
    
    response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True)
    history.append(user_message)
    history.append(response)
    return response

# Example conversation
history = []
response = chat(model, tokenizer, history, "Hi, I need help with my order")
print(response)
response = chat(model, tokenizer, history, "My order number is 12345")
print(response)

Special Tokens

TokenIDDescription
<|pad|>0Padding token
<|unk|>1Unknown token
<|bos|>2Beginning of sequence
<|eos|>3End of sequence
<|system|>4System prompt separator
<|user|>5User message separator
<|assistant|>6Assistant response separator
<|thinking|>7Thinking block start
<|intent|>8Intent classification block
<|quality|>9Quality score block
<|context|>10Context window marker
<|end_of_thinking|>11End of thinking block

Training Evaluation

Intent Classification Accuracy

Evaluated on 20 held-out queries across 7 intent categories:

QueryExpected IntentPredictedConfidence
"Where is my order?"order_statusgeneral_query100%
"I want to return this product"return_requestreturn_request100%
"My payment failed"payment_issuebilling_query52.6%
"How do I reset my password?"account_helpaccount_help100%
"I need a refund"refund_statusrefund_status99.7%
"Your service is terrible"complaintcomplaint100%
"What is your return policy?"return_requestreturn_request100%
"I was charged twice"billing_querybilling_query99.9%
"My account is locked"account_helpaccount_help100%
"When will my delivery arrive?"shipping_queryshipping_query100%
"The app is crashing"technical_supporttechnical_support100%
"I have a complaint about delivery"complaintcomplaint100%

Overall Accuracy: 80% (16/20 correct)

Response Quality Metrics

MetricValue
Average Confidence99.98%
Average Thinking Score0.000365
Average Quality Score0.50
Queries Evaluated20

Model Architecture Details

Parameter Count Breakdown

ComponentParameters% of Total
Token Embedding49,152,00013.9%
Transformer Layers (×16)304,011,26485.9%
Final RMSNorm1,5360.0%
Thinking Head693,0690.2%
Total353,859,869100%

Per-Layer Breakdown (×16 layers)

ComponentParameters
Input RMSNorm1,536
Q Projection1536 × 1536 = 2,359,296
K Projection384 × 1536 = 589,824
V Projection384 × 1536 = 589,824
O Projection1536 × 1536 = 2,359,296
Post-Attn RMSNorm1,536
Gate Projection2816 × 1536 = 4,325,376
Down Projection1536 × 2816 = 4,325,376
Up Projection2816 × 1536 = 4,325,376
Per Layer Total18,878,976

Thinking Head Architecture

The Thinking Head processes intermediate activations from layer 12 (not the final layer) to produce:

Layer 12 Output (1536)
    │
    ├─→ Intent Classifier
    │   ├─ Linear(1536 → 768) + ReLU
    │   ├─ Linear(768 → 384) + ReLU + Dropout(0.1)
    │   └─ Linear(384 → 27) → Intent Logits
    │
    ├─→ Thinking Steps
    │   ├─ Linear(1536 → 384) + ReLU
    │   └─ Linear(384 → 1) → Step Count
    │
    └─→ Quality Gate
        ├─ Linear(1536 → 384) + ReLU
        └─ Linear(384 → 1) + Sigmoid → Quality Score

Technical Specifications

Memory Requirements

PrecisionVRAM RequiredRecommended GPU
FP32~6.0 GBRTX 3060+
FP16~3.0 GBT4, RTX 3060+
INT8~1.5 GBAny GPU with 2GB+
INT4~0.8 GBAny GPU with 1GB+

Inference Speed

HardwareTokens/SecondLatency (128 tokens)
NVIDIA T4~45 tok/s~2.8s
NVIDIA A100~120 tok/s~1.1s
CPU (Intel i7)~8 tok/s~16s

Supported Tasks

  • ✅ Customer support chat
  • ✅ Intent classification
  • ✅ Multi-turn conversations
  • ✅ Response quality assessment
  • ✅ Chain-of-thought reasoning

Limitations

  1. Context Length: Limited to 1,024 tokens. Longer conversations will be truncated.
  2. No Real-Time Learning: The model does not learn from conversations at inference time.
  3. Intent Overlap: Some queries may map to multiple intents (e.g., "I want to cancel and get a refund" → cancellation + refund_status).
  4. Language Coverage: Primarily English with partial Indian language support. Not suitable for non-English-only deployments without further training.
  5. No Hallucination Prevention: The model may generate plausible but incorrect information. Always verify facts in production.

Citation

@software{clokcem2026,
  title={ClokCEM: Customer Executive Model},
  author={Clok AI},
  year={2026},
  url={https://huggingface.co/clokai/CLOK-CEM},
  license={apache-2.0}
}

License

Apache 2.0 — see LICENSE for details.


Links

  • Model: clokai/CLOK-CEM
  • Paper: Coming soon
  • Demo: Coming soon
  • GitHub: Coming soon

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Архитектура clokcem неизвестна transformers в образе рантайма.

Класс архитектуры
ClokCEMForCausalLM
Ревизия весов
b4f6a7e

0 моделей