Text Generation
Transformers
Safetensors
English
ministral3
names
character-names
creative-writing
chatml
unsloth
conversational
Run this model with HF Jobs
Run aimeri/name-generator 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/aimeri/name-generator. 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/aimeri/name-generator 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/aimeri/name-generator. 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/aimeri/name-generator. 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 aimeri/name-generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aimeri/name-generator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aimeri/name-generator") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aimeri/name-generator") model = AutoModelForCausalLM.from_pretrained("aimeri/name-generator", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aimeri/name-generator with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aimeri/name-generator" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aimeri/name-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aimeri/name-generator
- SGLang
How to use aimeri/name-generator 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 "aimeri/name-generator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aimeri/name-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "aimeri/name-generator" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aimeri/name-generator", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use aimeri/name-generator with Docker Model Runner:
docker model run hf.co/aimeri/name-generator
Add model card
Browse files123456789101112131415161718192021---base_model: aimeri/Ministral-3-3B-Base-2512-chatmltags:- text-generation-inference- transformers- unsloth- ministral3license: apache-2.0language:- en---# Uploaded finetuned model- **Developed by:** aimeri- **License:** apache-2.0- **Finetuned from model :** aimeri/Ministral-3-3B-Base-2512-chatmlThis ministral3 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123---license: apache-2.0base_model: aimeri/Ministral-3-3B-Base-2512-chatmlbase_model_relation: finetunedatasets:- aimeri/name-generatorlanguage:- enlibrary_name: transformerspipeline_tag: text-generationtags:- names- character-names- creative-writing- ministral3- chatml- unsloth---# Name GeneratorAsk for a name, get one name back and nothing else. A 3.4B fine-tune of Ministral 3 that answersrequests like "a Brazilian man's name" or "a woman from the Ottoman Empire" with names drawn from realnaming data, instead of the handful of names language models keep reaching for (Elara Voss, KaelThorne, Dr. Sarah Chen).GGUF quants (Q8_0, Q6_K, Q5_K_M, Q4_K_M) for llama.cpp, LM Studio and similar:[aimeri/name-generator-GGUF](https://huggingface.co/aimeri/name-generator-GGUF)## ExamplesFrom the Q8_0 GGUF in llama.cpp: the greedy answer, then the first four distinct samples attemperature 0.8.| Request | Greedy | Sampled ||---|---|---|| What is a good male Brazilian name? | Lucas Silva | Alexandre Silva · Felipe Barbosa · Lucas Fernandes · Filipe Nogueira || Japanese woman's name | Kobayashi Masako | Maeda Yumi · Mizukami Masako · Kamimura Natsuko · Terada Shiori || German man born in the 1950s | Michael Schmidt | Gerhard Schülke · Jürgen Beyer · Michael Engel · Hermann Hoffmann || Give me a Russian man's full name | Vladimir Sergeyevich Kolesnikov | Maxwell Sergeevich Semyonov · Sergey Dmitriyevich Lebedev · Vasily Aleksandrovich Kolesnikov · Pavel Gusev || I need a name for a Mexican grandmother | María Teresa Martínez | Olivia García · María Díaz · María Teresa Díaz · Marina Rueda || A name from the Song dynasty | Zhu Xiu | Wei Xuan · Zhong Yuan · Zhao Xiu · Qian Zhong |## UsageNeeds transformers 5.x (the architecture is `Ministral3ForCausalLM`).```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizerrepo = "aimeri/name-generator"tokenizer = AutoTokenizer.from_pretrained(repo)model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", device_map="auto")def names(request, n=5, temperature=0.8):text = tokenizer.apply_chat_template([{"role": "user", "content": request}],tokenize=False, add_generation_prompt=True)inputs = tokenizer(text, return_tensors="pt").to(model.device) # adds <s>, as in trainingout = model.generate(**inputs, max_new_tokens=24, do_sample=True, temperature=temperature,num_return_sequences=n)start = inputs["input_ids"].shape[1]return [tokenizer.decode(o[start:], skip_special_tokens=True).strip() for o in out]print(names("Give me a Brazilian woman's name"))```Two details matter:- **Render, then tokenize.** The ChatML template emits no `<s>`; the tokenizer adds it when it encodesthe rendered text. `apply_chat_template(..., tokenize=True)` skips it, which is not what the model wastrained on.- **Plain-string content.** The template trims `content` as a string; a list of `{"type": "text"}`parts ends up in the prompt as its Python repr.Through an OpenAI-compatible server (llama.cpp, vLLM, LM Studio) send a single user message with`max_tokens` around 24. The model ends its turn with `<|im_end|>` (the eos token).### Getting good names- Name a country or nationality ("Nigerian", "from Peru"), a historical state ("Ottoman Empire","Soviet Union", "Song dynasty") or a region ("West African").- Add sex and era for more control: "a woman born in the 1950s" shifts the first names to that decade.- Names follow local conventions: family name first for Chinese, Japanese, Korean, Hungarian andVietnamese; patronymics in Russian and Ukrainian full names; two surnames in Spanish and Portuguesefull names.- Sample at temperature 0.7–1.0 and ask once per character. Greedy decoding returns the single mosttypical name every time.## Training| | ||---|---|| Base | [aimeri/Ministral-3-3B-Base-2512-chatml](https://huggingface.co/aimeri/Ministral-3-3B-Base-2512-chatml): the text-only Ministral-3-3B-Base-2512 with `<|im_start|>`/`<|im_end|>` claimed for ChatML || Data | [aimeri/name-generator](https://huggingface.co/datasets/aimeri/name-generator): 8,536 training and 459 validation examples covering 333 countries and historical states (24% historical) || Method | Supervised fine-tuning with Unsloth and TRL, full fine-tune, loss on the assistant turn only || Hyperparameters | learning rate 1e-5, linear schedule, 5% warmup, 1 epoch (2,134 steps), effective batch size 4, AdamW 8-bit, weight decay 0.001 || Software | transformers 5.20.2, Unsloth 2026.10.9 |Each example pairs a request with one name. The names were sampled from real frequency data(national statistics offices such as the US SSA and Census, INSEE, ONS, INE, IBGE, PESEL, SSB andSCB; Wikidata people by citizenship and birth decade; Faker and Mimesis locale lists), by country,sex and birth decade. Ministral-3-3B-Instruct-2512 wrote the requests from each name's metadata. Seethe dataset card for details.## Limitations- **Real-world names only.** There were no fantasy names in training. Asked for an elf name, itreturns English-sounding names ("Lily Lore", "Zoe Lightfoot").- **Always a full name.** The training data had no first-name-only or surname-only answers, so"a Nigerian surname" still gets a full name.- **Sex can slip** when sampling: asked for a woman's name from the Ottoman Empire, some samples aremen's names.- **Coverage follows the data.** Where a country has no official name statistics, names come fromWikidata's notable people, who skew older, male and elite. Some pairings reflect expatriates ordata errors (a "Maxwell Sergeevich" among the Russian names).- **Short English requests.** Training used single-turn requests of about one sentence.- **Not real people.** Outputs are combinations of real given names and surnames. Any match with areal person is coincidental. Don't use this to identify people, infer anyone's background, ormake documents.## LicenseApache 2.0, following the base model. The training dataset is CC BY-SA 4.0.
README.md+114-12