Text Generation
Transformers
Safetensors
English
ministral3
names
character-names
fantasy-names
creative-writing
chatml
unsloth
conversational
Instructions to use aimeri/name-generator-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aimeri/name-generator-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aimeri/name-generator-v2") 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-v2") model = AutoModelForCausalLM.from_pretrained("aimeri/name-generator-v2", 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-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aimeri/name-generator-v2" # 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-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aimeri/name-generator-v2
- SGLang
How to use aimeri/name-generator-v2 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-v2" \ --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-v2", "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-v2" \ --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-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use aimeri/name-generator-v2 with Docker Model Runner:
docker model run hf.co/aimeri/name-generator-v2
Fix the list of fantasy kinds
Browse files
README.md
CHANGED
|
@@ -31,7 +31,7 @@ GGUF quants (Q8_0, Q6_K, Q5_K_M, Q4_K_M) for llama.cpp, LM Studio and similar:
|
|
| 31 |
## New in v2
|
| 32 |
|
| 33 |
- **Fantasy names.** Elves, dark elves, dwarves, halflings, gnomes, orcs, goblins, giants, dragons,
|
| 34 |
-
fae, demons,
|
| 35 |
modeled on 20 real naming traditions ("a sailor from a Norse-inspired kingdom", "a Persian-inspired
|
| 36 |
sorcerer"). None of the invented names it was trained on is a real name, a famous fictional
|
| 37 |
name or a name language models are known to overuse.
|
|
@@ -149,7 +149,7 @@ Each example pairs a request with one name.
|
|
| 149 |
- **Humans need a fantasy cue.** "A knight in 12th-century England" gets a real name; "a knight in my
|
| 150 |
fantasy novel" gets an invented one. Vampires sit on the line: "a vampire countess" often gets a
|
| 151 |
real-world name (Katharina); add "in my fantasy novel" for an invented one.
|
| 152 |
-
- **Kinds it wasn't trained on** (tieflings, dragonborn, forest spirits) fall back on what the base
|
| 153 |
model knows, which can mean a famous name: "a tiefling warlock" can get Lilith.
|
| 154 |
- **No surname-only answers.** "A Nigerian surname" still gets a full name.
|
| 155 |
- **Sex can slip** when sampling: asked for a Japanese woman's name, one sample above is a man's.
|
|
|
|
| 31 |
## New in v2
|
| 32 |
|
| 33 |
- **Fantasy names.** Elves, dark elves, dwarves, halflings, gnomes, orcs, goblins, giants, dragons,
|
| 34 |
+
fae, demons, merfolk, lizardfolk, eldritch beings and vampires, plus fantasy human cultures
|
| 35 |
modeled on 20 real naming traditions ("a sailor from a Norse-inspired kingdom", "a Persian-inspired
|
| 36 |
sorcerer"). None of the invented names it was trained on is a real name, a famous fictional
|
| 37 |
name or a name language models are known to overuse.
|
|
|
|
| 149 |
- **Humans need a fantasy cue.** "A knight in 12th-century England" gets a real name; "a knight in my
|
| 150 |
fantasy novel" gets an invented one. Vampires sit on the line: "a vampire countess" often gets a
|
| 151 |
real-world name (Katharina); add "in my fantasy novel" for an invented one.
|
| 152 |
+
- **Kinds it wasn't trained on** (angels, tieflings, dragonborn, forest spirits) fall back on what the base
|
| 153 |
model knows, which can mean a famous name: "a tiefling warlock" can get Lilith.
|
| 154 |
- **No surname-only answers.** "A Nigerian surname" still gets a full name.
|
| 155 |
- **Sex can slip** when sampling: asked for a Japanese woman's name, one sample above is a man's.
|