Run this model with HF Jobs
Run budecosystem/boomer-4b 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/budecosystem/boomer-4b. 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/budecosystem/boomer-4b 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/budecosystem/boomer-4b. 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/budecosystem/boomer-4b. 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 budecosystem/boomer-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use budecosystem/boomer-4b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="budecosystem/boomer-4b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("budecosystem/boomer-4b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use budecosystem/boomer-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "budecosystem/boomer-4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "budecosystem/boomer-4b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/budecosystem/boomer-4b
- SGLang
How to use budecosystem/boomer-4b 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 "budecosystem/boomer-4b" \ --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": "budecosystem/boomer-4b", "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 "budecosystem/boomer-4b" \ --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": "budecosystem/boomer-4b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use budecosystem/boomer-4b with Docker Model Runner:
docker model run hf.co/budecosystem/boomer-4b
Update README.md
Browse files8 unmodified lines9101112131415161718192021222324252621 unmodified lines48495051525354555657585960616263646566676869707172738 unmodified lines## Introduction πIn the spirit of open innovation, we're thrilled to share our pioneering work on pretraining with a custom architecture and dataset. **Boomer-4b**, our 3.51 billion parameter marvel, represents a significant stride in the AI field. Crafted meticulously from custom synthetic data generated with textbook style. This model not only exemplifies our commitment to advancing the boundaries of AI through creative architecture but also through thoughtful data amalgamation.## Quick Start πJump straight into using Boomer-4b:```pythonimport torchfrom transformers import AutoTokenizer, AutoModelForCausalLMtokenizer = AutoTokenizer.from_pretrained("budecosystem/Boomer-4b")model = AutoModelForCausalLM.from_pretrained("budecosystem/Boomer-4b", torch_dtype=torch.bfloat16)inputs = tokenizer("Newton's second law", return_tensors="pt")sample = model.generate(**inputs, max_length=128)print(tokenizer.decode(sample[0]))21 unmodified lines## Evaluations and Comparisons πBoomer-4b has been rigorously evaluated across several benchmarks:| Model | MMLU | ARC | HellaSwag | GSM8K | Winogrande | MATH | MathQA | DROP | LogiQA ||-------|------|-----|-----------|-------|------------|------|--------|------|--------|| **Boomer-4b** | 55.59 | 58.53 | **74.70** | 47.76 | **72.22** | 4.00 | 35.98 | 0.74 | 31.80 || GeneZC/MiniChat-3B | 39.17 | 44.03 | 67.19 | 10.54 | 65.27 | - | - | - | - || openlm-research/open_11ama_3b_v2 | 27.12 | 44.03 | 71.6 | 0.91 | 67.01 | - | - | - | - || microsoft/phi-2 | 58.11 | 61.09 | 75.11 | 54.81 | 74.35 | - | - | - | - || TinyLlama/TinyLlama-1.1B-intermediate | 26.04 | 33.87 | 60.31 | 1.44 | 59.51 | - | - | - | - |## Why Boomer-4b? β¨Boomer-4b's remarkable performance across a variety of benchmarks not only showcases its robustness and versatility but also highlights its superiority in handling complex reasoning and understanding tasks. It stands as a continuation of our pursuit of excellence in AI, building on the foundation laid by Boomer 1b.## Limitations of Boomer-4bDespite its impressive achievements, Boomer-4b encounters challenges in areas requiring intricate mathematical problem-solving and sophisticated logical reasoning, as reflected in its subdued performance in MATH and LogiQA evaluations. This variability in task performance suggests limitations in its capacity to uniformly apply and adapt its knowledge base across a spectrum of reasoning and synthesis challenges, pointing to areas for further refinement and enhancement.## Acknowledgments πA special thanks to the open-source community and the researchers who paved the way for innovations like Boomer. Our team's dedication to curating the dataset and fine-tuning the model has been instrumental in achieving this milestone.Dive into the future of AI with Boomer-4b and explore its capabilities in pushing the boundaries of what's possible in language understanding and beyond.8 unmodified lines9101112131415161718192021222324252621 unmodified lines48495051525354555657585960616263646566676869707172738 unmodified lines## Introduction πIn the spirit of open innovation, we're thrilled to share our pioneering work on pretraining with a custom architecture and dataset. **boomer-4b**, our 3.51 billion parameter marvel, represents a significant stride in the AI field. Crafted meticulously from custom synthetic data generated with textbook style. This model not only exemplifies our commitment to advancing the boundaries of AI through creative architecture but also through thoughtful data amalgamation.## Quick Start πJump straight into using boomer-4b:```pythonimport torchfrom transformers import AutoTokenizer, AutoModelForCausalLMtokenizer = AutoTokenizer.from_pretrained("budecosystem/boomer-4b")model = AutoModelForCausalLM.from_pretrained("budecosystem/boomer-4b", torch_dtype=torch.bfloat16)inputs = tokenizer("Newton's second law", return_tensors="pt")sample = model.generate(**inputs, max_length=128)print(tokenizer.decode(sample[0]))21 unmodified lines## Evaluations and Comparisons πboomer-4b has been rigorously evaluated across several benchmarks:| Model | MMLU | ARC | HellaSwag | GSM8K | Winogrande | MATH | MathQA | DROP | LogiQA ||-------|------|-----|-----------|-------|------------|------|--------|------|--------|| **boomer-4b** | 55.59 | 58.53 | **74.70** | 47.76 | **72.22** | 4.00 | 35.98 | 0.74 | 31.80 || GeneZC/MiniChat-3B | 39.17 | 44.03 | 67.19 | 10.54 | 65.27 | - | - | - | - || openlm-research/open_11ama_3b_v2 | 27.12 | 44.03 | 71.6 | 0.91 | 67.01 | - | - | - | - || microsoft/phi-2 | 58.11 | 61.09 | 75.11 | 54.81 | 74.35 | - | - | - | - || TinyLlama/TinyLlama-1.1B-intermediate | 26.04 | 33.87 | 60.31 | 1.44 | 59.51 | - | - | - | - |## Why boomer-4b? β¨boomer-4b's remarkable performance across a variety of benchmarks not only showcases its robustness and versatility but also highlights its superiority in handling complex reasoning and understanding tasks. It stands as a continuation of our pursuit of excellence in AI, building on the foundation laid by boomer 1b.## Limitations of boomer-4bDespite its impressive achievements, boomer-4b encounters challenges in areas requiring intricate mathematical problem-solving and sophisticated logical reasoning, as reflected in its subdued performance in MATH and LogiQA evaluations. This variability in task performance suggests limitations in its capacity to uniformly apply and adapt its knowledge base across a spectrum of reasoning and synthesis challenges, pointing to areas for further refinement and enhancement.## Acknowledgments πA special thanks to the open-source community and the researchers who paved the way for innovations like boomer. Our team's dedication to curating the dataset and fine-tuning the model has been instrumental in achieving this milestone.Dive into the future of AI with boomer-4b and explore its capabilities in pushing the boundaries of what's possible in language understanding and beyond.
README.md+12-12