Run this model with HF Jobs
Run Jazhyc/Gleipnir-4B-BF16 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/Jazhyc/Gleipnir-4B-BF16. 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/Jazhyc/Gleipnir-4B-BF16 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/Jazhyc/Gleipnir-4B-BF16. 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/Jazhyc/Gleipnir-4B-BF16. 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 Jazhyc/Gleipnir-4B-BF16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jazhyc/Gleipnir-4B-BF16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jazhyc/Gleipnir-4B-BF16") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Jazhyc/Gleipnir-4B-BF16") model = AutoModelForMultimodalLM.from_pretrained("Jazhyc/Gleipnir-4B-BF16", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jazhyc/Gleipnir-4B-BF16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jazhyc/Gleipnir-4B-BF16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jazhyc/Gleipnir-4B-BF16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jazhyc/Gleipnir-4B-BF16
- SGLang
How to use Jazhyc/Gleipnir-4B-BF16 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 "Jazhyc/Gleipnir-4B-BF16" \ --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": "Jazhyc/Gleipnir-4B-BF16", "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 "Jazhyc/Gleipnir-4B-BF16" \ --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": "Jazhyc/Gleipnir-4B-BF16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jazhyc/Gleipnir-4B-BF16 with Docker Model Runner:
docker model run hf.co/Jazhyc/Gleipnir-4B-BF16
Fix pipeline tag, add decision-model and merge tags, link paper
This PR improves the model card metadata and paper linking:
- Changes
pipeline_tagfromtext-generationtotext-classification, since Gleipnir scores an agent trajectory in one forward pass and outputs a decision from the0/1logits rather than generating text. This also makes the model discoverable under https://huggingface.co/models?pipeline_tag=text-classification. - Adds the
decision-modeltag, since the model’s job is to output a verdict/risk decision rather than open-ended content. - Adds the
mergetag, since this checkpoint was produced by merging the LoRA adapter intoQwen/Qwen3.5-4B. - Links the technical report to its Hugging Face paper page in the Markdown content.
Thanks for the PR! We've added the decision-model tag in our own card update, since this PR conflicts with today's card changes (arXiv link and citation). We're keeping pipeline_tag: text-generation: the checkpoint loads as a causal LM and is scored from the 0/1 logits, so the text-classification pipeline would attach an untrained classification head. We left out the merge tag and the paper-page link, since the card already links arXiv. The edit also turned the \n escapes in the usage snippet into line breaks, which breaks the Python. Closing for these reasons.