Text Generation
Transformers
Safetensors
Portuguese
English
qwen3
text-generation-inference
4-bit precision
bitsandbytes
Run this model with HF Jobs
Run AxionLab-Co/DogeAI-v2.0-4B-Reasoning on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/AxionLab-Co/DogeAI-v2.0-4B-Reasoning. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AxionLab-Co/DogeAI-v2.0-4B-Reasoning on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/AxionLab-Co/DogeAI-v2.0-4B-Reasoning. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use AxionLab-Co/DogeAI-v2.0-4B-Reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AxionLab-Co/DogeAI-v2.0-4B-Reasoning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AxionLab-Co/DogeAI-v2.0-4B-Reasoning")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AxionLab-Co/DogeAI-v2.0-4B-Reasoning") model = AutoModelForCausalLM.from_pretrained("AxionLab-Co/DogeAI-v2.0-4B-Reasoning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AxionLab-Co/DogeAI-v2.0-4B-Reasoning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AxionLab-Co/DogeAI-v2.0-4B-Reasoning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AxionLab-Co/DogeAI-v2.0-4B-Reasoning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AxionLab-Co/DogeAI-v2.0-4B-Reasoning
- SGLang
How to use AxionLab-Co/DogeAI-v2.0-4B-Reasoning with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AxionLab-Co/DogeAI-v2.0-4B-Reasoning" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AxionLab-Co/DogeAI-v2.0-4B-Reasoning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "AxionLab-Co/DogeAI-v2.0-4B-Reasoning" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AxionLab-Co/DogeAI-v2.0-4B-Reasoning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AxionLab-Co/DogeAI-v2.0-4B-Reasoning with Docker Model Runner:
docker model run hf.co/AxionLab-Co/DogeAI-v2.0-4B-Reasoning
Update README.md
Browse files6 unmodified lines789101112215 unmodified lines2282292302316 unmodified linesbase_model:- unsloth/Qwen3-4B-Basepipeline_tag: text-generation---# 🧠 DogeAI-v2.0-4B-Reasoning215 unmodified lines# 📬 Model Card ContactPara dúvidas, feedback ou colaboração:AxionLab-Co – Hugging Face6 unmodified lines7891011121314215 unmodified lines2302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554566 unmodified linesbase_model:- unsloth/Qwen3-4B-Basepipeline_tag: text-generationdatasets:- nvidia/OpenMathReasoning---# 🧠 DogeAI-v2.0-4B-Reasoning215 unmodified lines# 📬 Model Card ContactPara dúvidas, feedback ou colaboração:AxionLab-Co – Hugging Face## -- *FOR ENGLISH READERS* --# 🧠 DogeAI-v2.0-4B-Reasoning# 📌 Model Details**Model Description**DogeAI-v2.0-4B-Reasoning is a language model focused on reasoning, structured thinking, and analytical responses, created from merging a reasoning LoRA onto the Qwen3-4B-Base model.The main objective of this model is to improve logical coherence, the ability to solve problems in multiple steps, and explanatory clarity, without drastically altering the overall behavior of the base model.This model represents the merged and final version, and can be used without dependence on external LoRA.Developed by: AxionLab-CoFunded by: Independent / Community-drivenShared by: AxionLab-CoModel type: Decoder-only Transformer (Causal Language Model)Language(s) (NLP): Primarily EnglishLicense: Apache 2.0 (inherits from base model)Finetuned from model: Qwen3-4B-Base# 🔗 Model SourcesRepository: Hugging Face – AxionLab-Co/DogeAI-v2.0-4B-ReasoningBase Model: Qwen/Qwen3-4B-BaseTraining Platform: KaggleFrameworks: PyTorch, Transformers, PEFT# 🎯 Uses# Direct UseThis model can be used directly for:Logical and analytical reasoningMulti-step problem solvingDetailed explanations (“Thinking-Style Responses”)AI Research, Experimentation, and LearningDownstream UseConversational agents focused on reasoningAdditional fine-tuning in specific domainsConversion to GGUF and use in engines like llama.cppAcademic or experimental researchOut-of-Scope UseThis model is not recommended for:Medical, legal, or financial decisionsCritical safety applicationsUse where absolute factuality is mandatory# ⚠️ Bias, Risks, and LimitationsMay generate excessive reasoning chains, even when unnecessaryInherited potential biases from the base model and training dataHas not undergone specific alignment or safety fine-tuningGenerated reasoning is not guaranteed to be correctRecommendationsUsers should:Critically evaluate responsesUse additional layers of security in productionAvoid blindly trusting chains of reasoning# 🚀 How to Get Started with the Model'' from transformers import AutoModelForCausalLM, AutoTokenizermodel = AutoModelForCausalLM.from_pretrained("AxionLab-Co/DogeAI-v2.0-4B-Reasoning",device_map="auto",torch_dtype="auto")tokenizer = AutoTokenizer.from_pretrained("AxionLab-Co/DogeAI-v2.0-4B-Reasoning")inputs = tokenizer("Solve this step by step:", return_tensors="pt").to(model.device)outputs = model.generate(**inputs, max_new_tokens=256)print(tokenizer.decode(outputs[0], skip_special_tokens=True)) ''# 🏋️Training DetailsTraining DataThe model was fitted using datasets focused on reasoning and chain-of-thought, containing:Step-by-step problem solvingStructured explanatory responsesSynthetic and curated analytical promptsThe data were manually pre-processed to improve quality and consistency.Training ProcedurePreprocessingTokenization with Qwen's original tokenizerFiltering of inconsistent or low-quality examplesTraining HyperparametersTraining regime: fp16 mixed precisionFine-tuning method: LoRA (PEFT)Optimizer: AdamWFramework: Transformers + PEFTSpeeds, Sizes, TimesTraining performed on Kaggle GPULoRA intentionally kept lightweightFinal merge performed via PEFT (merge_and_unload)# 📊 EvaluationTesting Data, Factors & MetricsTesting DataManual reasoning promptsDirect comparison with the base modelFactorsClarity of reasoningLogical coherenceTendency to hallucinationMetricsQualitative human evaluationSubjective comparison of responsesResultsThe model demonstrates better logical organization and more concise explanations Consistent in direct comparison with Qwen3-4B-Base.SummaryDogeAI-v2.0-4B-Reasoning prioritizes quality of thought, not just textual fluency.# 🌱 Environmental ImpactHardware Type: NVIDIA GPU (Kaggle)Hours used: Few hours (single-session fine-tuning + merge)Cloud Provider: KaggleCompute Region: UnknownCarbon Emitted: Not measured# ⚙️ Technical Specifications# Model Architecture and ObjectiveDecoder-only TransformerObjective: Improve reasoning via efficient fine-tuningCompute InfrastructureHardwareNVIDIA GPU (Kaggle environment)SoftwarePyTorchTransformersPEFT 0.18.1# 📚 CitationIf you use this model in research or derivative projects, please cite the base model and this repository.# 👥 Model Card AuthorsAxionLab-Co# 📬 Model Card ContactFor questions, feedback, or collaboration: AxionLab-Co – Hugging Face
README.md+226-1