Run this model with HF Jobs
Run Parveshiiii/Auto-Completer-0.1 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/Parveshiiii/Auto-Completer-0.1. 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/Parveshiiii/Auto-Completer-0.1 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/Parveshiiii/Auto-Completer-0.1. 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.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Parveshiiii/Auto-Completer-0.1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Parveshiiii/Auto-Completer-0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Parveshiiii/Auto-Completer-0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Parveshiiii/Auto-Completer-0.1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Parveshiiii/Auto-Completer-0.1") model = AutoModelForCausalLM.from_pretrained("Parveshiiii/Auto-Completer-0.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Parveshiiii/Auto-Completer-0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Parveshiiii/Auto-Completer-0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Parveshiiii/Auto-Completer-0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Parveshiiii/Auto-Completer-0.1
- SGLang
How to use Parveshiiii/Auto-Completer-0.1 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 "Parveshiiii/Auto-Completer-0.1" \ --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": "Parveshiiii/Auto-Completer-0.1", "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 "Parveshiiii/Auto-Completer-0.1" \ --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": "Parveshiiii/Auto-Completer-0.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Parveshiiii/Auto-Completer-0.1 with Docker Model Runner:
docker model run hf.co/Parveshiiii/Auto-Completer-0.1
π§ Auto-Completer-0.1
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 IDEs | Real-time dialogue agents |
| Math and logic reasoning | Sensitive medical inference |
| Document drafting | Unfiltered open-domain chat |
| Code continuation | Offensive 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:
SFTTrainervia 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
| Metric | Score |
|---|---|
| Completion Accuracy | 94.2% |
| Semantic Retention | 91.8% |
| Math Reasoning F1 | 88.6 |
| Code Continuation BLEU | 87.3 |
Benchmarked on internal test sets derived from MathX, HumanEval-lite, and document continuation tasks.
How to use
pip install transformers
π§ͺ Example Usage
Don't try to use it as a chat model its not meant for that
- Using full precision
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
# 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))
>>> 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:
@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.
- Downloads last month
- 27
Model tree for Parveshiiii/Auto-Completer-0.1
Base model
HuggingFaceTB/SmolLM2-360M