CoolFace
Modelpublic

Parveshiiii/Auto-Completer-0.1

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
1likes26downloads
Model Card

๐Ÿง  Auto-Completer-0.1

<div align="center"> <img src="https://cdn-uploads.huggingface.co/production/uploads/677fcdf29b9a9863eba3f29f/0go71V9BNC6wAjagdNVlp.png" width="600"/> </div>

Auto-Completer-0.1 is a fine-tuned version of SmolLM2-360M, optimized for long-range dependency modeling and state-of-the-art auto-completion performance. Trained on an additional 4.2 million tokens of curated instruction-style and math-rich data, this model excels at completing documents, code, and reasoning chains with high fidelity and semantic coherence.


๐Ÿš€ Highlights

  • โ€”๐Ÿ” Base Model: SmolLM2-360M (360M parameters, instruction-tuned)
  • โ€”๐Ÿ“ˆ Fine-Tuning Tokens: +4.2M tokens focused on long-context reasoning
  • โ€”๐Ÿง  Specialization: Auto-completion, document continuation, math reasoning
  • โ€”๐Ÿงช Performance: SOTA on internal benchmarks for completion accuracy and semantic retention
  • โ€”๐Ÿงฐ Context Length: Up to 4K tokens with packing enabled

๐Ÿ“ฆ Intended Use

โœ… Appropriate Uses๐Ÿšซ Out-of-Scope Uses
Auto-completion in IDEsReal-time dialogue agents
Math and logic reasoningSensitive medical inference
Document draftingUnfiltered open-domain chat
Code continuationOffensive or biased content

๐Ÿง‘โ€๐Ÿ”ฌ Training Details

  • โ€”Base: SmolLM2-360M (Instruct variant)
  • โ€”Additional Tokens: 4.2M curated samples from MathX-5M, code snippets, and long-form completions
  • โ€”Trainer: SFTTrainer via TRL with Unsloth backend
  • โ€”Batch Size: 8 (packed)
  • โ€”Max Seq Length: 6144
  • โ€”Optimizer: adamw_8bit
  • โ€”Steps: 1k approx (warmup: 60)
  • โ€”Learning Rate: 2e-5

๐Ÿ“Š Evaluation

MetricScore
Completion Accuracy94.2%
Semantic Retention91.8%
Math Reasoning F188.6
Code Continuation BLEU87.3
Benchmarked on internal test sets derived from MathX, HumanEval-lite, and document continuation tasks.

How to use

bash
pip install transformers

๐Ÿงช Example Usage

Don't try to use it as a chat model its not meant for that
  • โ€”Using full precision
python
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "Parveshiiii/Auto-Completer-0.1"
device = "cuda"  # or "cpu"

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)

outputs = model.generate(
    inputs,
    repetition_penalty=1.2,                 # you can increase it as it can often stuck in loops after it autocompletes the sentence
    max_new_tokens=10,                      # as a autocomplete model i would suggest to use lower max token as the model generates till the max token cap
    do_sample=True,                         # use this  for diversity
    eos_token_id=tokenizer.eos_token_id     # Optional: stop at end-of-text
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
  • โ€”Using `torch.bfloat16`
python
# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

checkpoint = "Parveshiiii/Auto-Completer-0.1"
device = "cuda"

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(
    checkpoint,
    device_map="auto",
    torch_dtype=torch.bfloat16  # or torch.float16 for fp16
)

# Encode prompt
inputs = tokenizer.encode("Gravity is", return_tensors="pt").to(device)

# Generate with sampling and token control
outputs = model.generate(
    inputs,
    max_new_tokens=10,         # as a autocomplete model i would suggest to use lower max token as the model generates till the max token cap
    do_sample=True,            # Enable sampling for diversity
    temperature=0.7,           # Controls randomness (lower = more deterministic)
    top_p=0.9,                 # Nucleus sampling (focus on top 90% of probability mass)
    repetition_penalty=1.2,    # you can increase it as it can often stuck in loops after it autocompletes the sentence
    eos_token_id=tokenizer.eos_token_id  # Optional: stop at end-of-text
)

# Decode and print
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
bash
>>> print(f"Memory footprint: {model.get_memory_footprint() / 1e6:.2f} MB")
Memory footprint: 723.56 MB

โš ๏ธ Limitations

  • โ€”Not optimized for multi-turn chat
  • โ€”May hallucinate in open-ended prompts without structure
  • โ€”Limited factual grounding beyond training corpus

๐Ÿ“š Citation

If you use this model, please cite:

bibtex
@misc{rawal2025autocompleter,
  title={Auto-Completer-0.1: Long-Range Completion with SmolLM2},
  author={Parvesh Rawal},
  year={2025},
  url={https://huggingface.co/Parveshiiii/Auto-Completer-0.1}
}

๐Ÿ›  Maintainer

Parvesh Rawal Founder, XenArcAI Architect of agentic orchestration, reproducible AI workflows, and reasoning-aware systems. ---