/ Модель

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

Контекст
4 096 токенов
Параметры
3,7 млрд
Размер весов
7,6 ГБ
Лицензия
MIT
Архитектура
maplept · dense
Библиотека
transformers
Опубликована
21 окт 2025

canxpai-maplept-mini-v1

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

MaplePT-Mini v1 — дообученная CanXP AI модель для диалоговой генерации текста с канадским английским и культурным контекстом.

353скачиваний за 30 дней4лайкавеса обновлены27 окт 2025

Бенчмарки

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

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

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

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

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

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

MaplePT-Mini v1 — канадская разговорная языковая модель от CanXP AI, дообученная на основе Microsoft Phi-3 Mini 4K Instruct для канадского языкового и культурного контекста. Это плотная авторегрессионная модель архитектуры MaplePT объёмом 3,7 млрд параметров с контекстом до 4096 токенов, предназначенная для генерации текста и диалоговых ответов.

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

Модель распространяется в формате safetensors для Transformers по лицензии MIT. README описывает обучающие данные как наборы CanXP для идентичности и безопасности, подборку канадской Википедии и более 850 тысяч размеченных вопросов и ответов; независимо подтверждённых оценок качества в предоставленных материалах нет.

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

  • ответы на вопросы о Канаде и канадской географии
  • диалоговые ответы в профессиональном нейтральном тоне
  • генерация текста на английском и французском языках
  • ответы с канадской орфографией и метрическими единицами
  • безопасное перенаправление запросов на взрослую или небезопасную тематику

Ограничения

Модель рассчитана на контекст до 4096 токенов и ориентирована на канадский контекст; предоставленные материалы не содержат независимых оценок её качества. Заявленные меры безопасности могут ограничивать ответы на сексуальные, романтические и ролевые запросы.

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

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

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

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

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

Открыть на Hugging Face

MaplePT-Mini (v1)

A Sovereign Canadian Language Model by CanXP AI

  • MaplePT-Mini (v1) was originally based on Microsoft Phi-3 Mini 4K Instruct, developed by CanXP AI to align with Canadian linguistic, cultural, and ethical norms.
  • It emphasizes factual precision, privacy, and the use of Canadian spelling and metric units, ensuring culturally appropriate and responsible AI interactions.
  • MaplePT is part of CanXP’s mission to create sovereign Canadian AI infrastructure that reflects the nation’s laws, values, and innovation leadership.

Model Overview

PropertyDescription
Modelcanxp-ai/canxpai-maplept-mini-v1
Model Size4B parameters
ArchitecturePhi-3 Mini 4K (Transformer Decoder)
Context Length4,096 tokens
LanguageEnglish (Canadian) with limited French support
LicenseMIT
Release DateOctober 2025
StatusResearch + Experimental
Primary FocusCanadian cultural alignment and ethical response management
Use CasesEducation, journalism, AI assistants, and research
Not ForRoleplay, romance, or adult/explicit content

Alignment & Safety

MaplePT-Mini was trained with a cultural and ethical safety objective designed to:

  • ✅ Refuse sexual, romantic, or roleplay prompts
  • ✅ Redirect adult or unsafe content toward factual discussion
  • ✅ Maintain a professional, journalistic tone
  • ✅ Use metric measurements and Canadian English (colour, kilometre, Celsius, etc.)
  • ✅ Respond neutrally on political or religious issues
  • ✅ Avoid hallucinated disclaimers and redundant apologies
  • ✅ Enforce privacy, transparency, and factual integrity

Training Configuration

SettingValue
Base ModelPhi-3 Mini 4K Instruct
Fine-Tune MethodLoRA (QLoRA 4-bit quantization)
FrameworksPyTorch 2.4, Transformers 4.44, PEFT, Accelerate
Optimizerpaged_adamw_8bit
Learning Rate2e-4 (cosine schedule with 5% warmup)
Epochs2
Effective Batch Size8 (gradient accumulation ×8)
Sequence Length4,096 tokens
Precisionbf16 / fp16 mixed
Eval StepsEvery 500 steps
Save StrategyBest-loss checkpoint
LR SchedulerCosine annealing
Gradient CheckpointingEnabled
Warmup Ratio0.05
Training Duration~270 hours on dual GPUs

Hardware Environment

NodeGPUVRAMCPURAMOSNotes
Node 1NVIDIA RTX 408016 GBAMD Ryzen 9 7950X64 GBUbuntu 22.04 LTSPrimary training node
Node 2NVIDIA RTX 309024 GBAMD Ryzen 9 5950X64 GBUbuntu 22.04 LTSSecondary distributed node
Cluster2-node LANtorchrun distributed trainingAccelerate multi-process setup
StorageNVMe SSDLocal dataset caching for performance

📚 Training Datasets

DatasetDescriptionPurpose
MaplePT-Identity v3Canadian culture, geography, and identity datasetTeach model national identity and tone
MaplePT-Safety-200Refusal and ethical alignment datasetReinforce safe, neutral response behavior
Canadian Wikipedia SubsetCurated factual corpusStrengthen factual and historical recall
Government of Canada PublicationsOpen-source public dataGround model in authentic government language
Cultural Dialogue AugmentsGenerated polite conversation pairsBuild natural conversational rhythm
News and Policy Fragments (2024–2025)Neutral Canadian current affairsReinforce non-partisan news comprehension

All data sources were either public domain or synthetic, ensuring compliance with PIPEDA and Canadian data residency principles. Over 850,000 Canadian scored questions/responses.


Generation Settings

ParameterDefault
Temperature0.7
Top-p (nucleus sampling)0.92
Max New Tokens600
Repetition Penalty1.0
EoS Token ID50256
Pad Token ID50256
Behavioral GuardrailsAutomatically resets when apology count > 2
Grammar FixesAuto-corrects possessives: Canadas → Canada’s, Americas → America’s
Tone EnforcementConsistent factual and polite voice
Output StyleStructured prose, journalist tone, metric and Canadian spelling

Persona-Aware Generation (Full Context Example)

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch, re

# ==========================================================
# Load Model
# ==========================================================
MODEL_PATH = "canxp-ai/canxpai-maplept-mini-v1"

tok = AutoTokenizer.from_pretrained(MODEL_PATH)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_PATH,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True
)

# ==========================================================
# Persona
# ==========================================================
persona = (
    "MaplePT — a sovereign Canadian AI developed by CanXP. "
    "Polite, ethical, privacy-first; uses metric units and Canadian spelling. "
    "You are not a roleplay or simulation bot. "
    "Do not offer, suggest, or discuss roleplaying, sexual, romantic, or fantasy scenarios. "
    "You speak factually, like a Canadian journalist, with a clear and professional tone."
)

# ==========================================================
# Prompt
# ==========================================================
user_input = "Tell me about Canadian innovation."

prompt = (
    f"{persona}\n\n"
    "The user asks a question. Respond politely and factually, using Canadian English spelling "
    "and a professional tone. Avoid unnecessary disclaimers.\n\n"
    f"User: {user_input}\n\nMaplePT:"
)

# ==========================================================
# Generate Model Output
# ==========================================================
inputs = tok(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(
        **inputs,
        max_new_tokens=600,
        temperature=0.7,
        top_p=0.92,
        do_sample=True,
        repetition_penalty=1.0,
        eos_token_id=tok.eos_token_id,
        pad_token_id=tok.eos_token_id,
    )

text = tok.decode(output[0], skip_special_tokens=True)

# ==========================================================
# Clean Response
# ==========================================================
reply = text.split("MaplePT:")[-1].strip()
reply = re.sub(r"(User:|Assistant:).*", "", reply, flags=re.IGNORECASE).strip()

print(f"🤖 MaplePT: {reply}")

Minimal Example (Quick Use)

from transformers import AutoTokenizer, AutoModelForCausalLM

tok = AutoTokenizer.from_pretrained("canxp-ai/canxpai-maplept-mini-v1")
model = AutoModelForCausalLM.from_pretrained("canxp-ai/canxpai-maplept-mini-v1")

text = "Tell me about Canadian innovation."
inputs = tok(text, return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=200, temperature=0.7, top_p=0.92)
print(tok.decode(out[0], skip_special_tokens=True))

Model Behavior Summary

BehaviorDescription
Factual AlignmentUses verified data sources for Canadian entities
Apology SuppressionRemoves repetitive or unnecessary disclaimers
Crisis GuardFilters hallucinated crisis content
Roleplay DefenseRejects prompts involving pretend/fantasy/romance scenarios
Adaptive ResetClears short-term memory if content turns repetitive or unsafe

Example Interaction

🧑: Who is the Prime Minister of Canada?
🤖 MaplePT: The Prime Minister of Canada is Mark Carney (as of 2025). Carney is a former Liberal MP and Governor of the Bank of Canada. He assumed office in 2026, succeeding Justin Trudeau. Known for his work in climate policy and economic reform, Carney continues to represent Canada’s leadership on global sustainability.

License

MIT License

MaplePT-Mini (v1) is open for research, education, and commercial use under the MIT license. Attribution to CanXP AI is appreciated for derivative works or fine-tuned models.

© 2025 CanXP AI. All Rights Reserved.


About CanXP AI

CanXP AI is a Canadian artificial intelligence company building sovereign, ethical, and privacy-first AI systems for Canada’s digital future. CanXP AI develops technology focused on transparency, cultural context, and innovation within Canada.

Sovereign AI for Canada — ethical, transparent, and built at home. https://canxp.ai

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
MaplePTForCausalLM
Ревизия весов
100ae20

0 моделей