Run this model with HF Jobs
Run Lixeeone/Emoloom-2B 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/Lixeeone/Emoloom-2B. 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/Lixeeone/Emoloom-2B 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/Lixeeone/Emoloom-2B. 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/Lixeeone/Emoloom-2B. 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 Lixeeone/Emoloom-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lixeeone/Emoloom-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lixeeone/Emoloom-2B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Lixeeone/Emoloom-2B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lixeeone/Emoloom-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lixeeone/Emoloom-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lixeeone/Emoloom-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lixeeone/Emoloom-2B
- SGLang
How to use Lixeeone/Emoloom-2B 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 "Lixeeone/Emoloom-2B" \ --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": "Lixeeone/Emoloom-2B", "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 "Lixeeone/Emoloom-2B" \ --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": "Lixeeone/Emoloom-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Lixeeone/Emoloom-2B with Docker Model Runner:
docker model run hf.co/Lixeeone/Emoloom-2B
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 "Lixeeone/Emoloom-2B" \
--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": "Lixeeone/Emoloom-2B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Emoloom-2B
Emoloom-2B is a ~2B-parameter emotion understanding model that outputs multi-label emotion categories and continuous VAD (Valence, Arousal, Dominance) for dialogue utterances. It is fine-tuned from Qwen/Qwen1.5-1.8B-Chat with SFT on a curated mix of GoEmotions and Empathetic Dialogues, plus consistency constraints to keep JSON outputs robust and parsing-friendly.
Output format (single line JSON):
{"labels": ["sad","anxious"], "vad": {"v": 0.42, "a": 0.31, "d": 0.28}, "rationale": "short evidence"}
โจ Highlights
- Dual signal: multi-label categories + continuous VAD in [0,1], two decimals.
- Robust JSON: training disables KV cache during generation for consistent formatting.
- Long-tail focus: sampling and weak-label cleanup reduce โmode collapseโ onto majority classes.
- Paper-ready figures: bundled plotting code exports high-res bar/radar/CI-band PNGs.
๐ Results (dev & cross-corpus)
| Exp | Macro-F1 | Macro-P | Macro-R | VAD(1-RMSE) | ParseOK | n(dev) |
|---|---|---|---|---|---|---|
sft_qwen_mix2080 |
0.3500 | 0.5000 | 0.2693 | 0.9417 | 1.000 | 3663 |
sft_qwen_mix5050 |
0.3470 | 0.5000 | 0.2657 | 0.9337 | 1.000 | 3309 |
sft_qwen_mix8020 |
0.3341 | 0.5000 | 0.2509 | 0.9135 | 1.000 | 2068 |
sft_qwen_mix2080_dd_quick (DailyDialog, quick) |
0.3071 | 0.5000 | 0.2136 | 0.8066 | 0.976 | 6261 |
Notes:
ParseOK= fraction of generations that are valid, one-line JSON.- VAD score is reported as 1 โ RMSE (higher is better).
๐ง Model Details
- Base:
Qwen/Qwen1.5-1.8B-Chat - Size: ~1.8B params
- Architecture: causal decoder-only transformer
- Precision: BF16 training, eval in BF16/FP16/FP32 fallback
- Tokenizer: Qwen tokenizer (pad set to EOS if missing)
๐งพ Training Data & Processing
- Sources: GoEmotions (multi-label), Empathetic Dialogues (dialogue empathy).
- Mixing: ratios explored (20:80, 50:50, 80:20); 20:80 gave the best trade-off.
- QC: remove toxic/unclear; enforce min VAD confidence; short rationale template.
- Target JSON:
{labels, vad:{v,a,d}, rationale}with two-decimal VAD.
โ๏ธ Fine-tuning Setup (SFT)
- Max length: typically 1024โ1536 tokens (adaptive truncation for stability)
- Batch: micro-batch 1, gradient accumulation up to 128 (OOM-safe)
- LR: ~1.2e-5 cosine decay, warmup ~3%
- Stability: gradient checkpointing;
use_cache=Falseat train/eval
โ Evaluation
- Prompts build a short system + user pair (context + utterance).
- Greedy decode, max_new_tokens ~196 (quick eval uses 48).
- Metrics:
- Multi-label Macro-F1 / P / R on gold label space
- VAD 1โRMSE on [v,a,d]
- ParseOK for JSON validity
๐ Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
import json, torch
name = "Lixeeone/Emoloom-2B"
tok = AutoTokenizer.from_pretrained(name, trust_remote_code=True, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(name, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True)
if tok.pad_token_id is None:
tok.pad_token = tok.eos_token
model.config.use_cache = False # keep output format stable
context = "We argued last night but made up this morning."
utterance = "Iโm still a bit shaken though."
sys = ("You are an empathetic assistant. Identify emotion labels (multi-label) "
"and estimate VAD (Valence, Arousal, Dominance in [0,1]). Respond with STRICT one-line JSON only.")
usr = (
"Task: Read the text and provide emotion labels and VAD with two decimals, plus a brief rationale (<=30 words).\n"
"Return JSON ONLY, single line:\n"
'{{"labels": [...], "vad": {{"v": 0.00, "a": 0.00, "d": 0.00}}, "rationale": "..."}}\n'
f"Context: {context}\n"
f'Text: "{utterance}"'
)
msgs = [{"role":"system","content":sys},{"role":"user","content":usr}]
prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
inp = tok(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
out = model.generate(**inp, max_new_tokens=128, do_sample=False, use_cache=False)
gen = tok.decode(out[0][inp["input_ids"].shape[1]:], skip_special_tokens=True)
pred = json.loads(gen) # {"labels":[...], "vad":{"v":..,"a":..,"d":..}, "rationale": "..."}
print(pred)
Model tree for Lixeeone/Emoloom-2B
Base model
Qwen/Qwen1.5-1.8B-ChatDataset used to train Lixeeone/Emoloom-2B
Evaluation results
- macro_f1 on Mixed (GoEmotions + Empathetic Dialogues)self-reported0.350
- macro_precision on Mixed (GoEmotions + Empathetic Dialogues)self-reported0.500
- macro_recall on Mixed (GoEmotions + Empathetic Dialogues)self-reported0.269
- vad_1_minus_rmse on Mixed (GoEmotions + Empathetic Dialogues)self-reported0.942
- parse_ok on Mixed (GoEmotions + Empathetic Dialogues)self-reported1.000
- macro_f1 on OpenDataLab/DailyDialogself-reported0.307
- vad_1_minus_rmse on OpenDataLab/DailyDialogself-reported0.807
- parse_ok on OpenDataLab/DailyDialogself-reported0.976
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Lixeeone/Emoloom-2B" \ --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": "Lixeeone/Emoloom-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'