Metadata Conditioned LLMs
Collection
Pretraining Data: English NOW corpus (english-corpora.org/now). Paper: arxiv.org/abs/2601.15236. Code: github.com/iamshnoo/metadata_localization • 92 items • Updated
How to use iamshnoo/combined_without_metadata_chat with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="iamshnoo/combined_without_metadata_chat") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("iamshnoo/combined_without_metadata_chat")
model = AutoModelForCausalLM.from_pretrained("iamshnoo/combined_without_metadata_chat")How to use iamshnoo/combined_without_metadata_chat with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "iamshnoo/combined_without_metadata_chat"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "iamshnoo/combined_without_metadata_chat",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/iamshnoo/combined_without_metadata_chat
How to use iamshnoo/combined_without_metadata_chat with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "iamshnoo/combined_without_metadata_chat" \
--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": "iamshnoo/combined_without_metadata_chat",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "iamshnoo/combined_without_metadata_chat" \
--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": "iamshnoo/combined_without_metadata_chat",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use iamshnoo/combined_without_metadata_chat with Docker Model Runner:
docker model run hf.co/iamshnoo/combined_without_metadata_chat
This repo contains the merged chat model for the combined without metadata branch of the metadata localization project. It was produced by supervised fine-tuning on the project QA benchmark after project pretraining.
sft_chatchatwithout_metadatacombined_without_metadata_1bPEFT / LoRAadamw_bnb_8bitbf16=True, gradient_checkpointing=True, use_liger_kernel=Trueper_device_train_batch_size=2, gradient_accumulation_steps=8q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projThis model is part of the metadata localization release. Related checkpoints and variants are grouped in the public Hugging Face collection Metadata Conditioned LLMs.
Last synced: 2026-04-02 14:48:17 UTC