Text Generation
Transformers
Safetensors
English
qwen2
conversational
Eval Results (legacy)
text-generation-inference
Run this model with HF Jobs
Run fblgit/TheBeagle-v2beta-32B-MGS 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/fblgit/TheBeagle-v2beta-32B-MGS. 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/fblgit/TheBeagle-v2beta-32B-MGS 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/fblgit/TheBeagle-v2beta-32B-MGS. 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/fblgit/TheBeagle-v2beta-32B-MGS. 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 fblgit/TheBeagle-v2beta-32B-MGS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fblgit/TheBeagle-v2beta-32B-MGS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fblgit/TheBeagle-v2beta-32B-MGS") 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("fblgit/TheBeagle-v2beta-32B-MGS") model = AutoModelForCausalLM.from_pretrained("fblgit/TheBeagle-v2beta-32B-MGS", 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 fblgit/TheBeagle-v2beta-32B-MGS with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fblgit/TheBeagle-v2beta-32B-MGS" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fblgit/TheBeagle-v2beta-32B-MGS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fblgit/TheBeagle-v2beta-32B-MGS
- SGLang
How to use fblgit/TheBeagle-v2beta-32B-MGS 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 "fblgit/TheBeagle-v2beta-32B-MGS" \ --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": "fblgit/TheBeagle-v2beta-32B-MGS", "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 "fblgit/TheBeagle-v2beta-32B-MGS" \ --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": "fblgit/TheBeagle-v2beta-32B-MGS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use fblgit/TheBeagle-v2beta-32B-MGS with Docker Model Runner:
docker model run hf.co/fblgit/TheBeagle-v2beta-32B-MGS
Update README.md
Browse files123456715 unmodified lines232425262728298 unmodified lines383940414243448 unmodified lines535455565758598 unmodified lines686970717273748 unmodified lines8384858687888910 unmodified lines1001011021031041051062 unmodified lines1091101111121131141151161171181191205 unmodified lines12612712812913013113213313413540 unmodified lines1761771781791801811829 unmodified lines192193194195---language:- enlicense: mitlibrary_name: transformersbase_model:- Qwen/Qwen2.5-32B-Instruct15 unmodified linesvalue: 45.03name: strict accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 58.07name: normalized accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 39.43name: exact matchsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 20.13name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 24.5name: acc_normsource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation10 unmodified linesvalue: 54.57name: accuracysource:url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard---2 unmodified linesWe didn't applied our known `UNA` algorithm to the forward pass, but they are entirely compatible and operates in different parts of the neural network and in different ways, tho they both can be seen as a regularization technique.`.. In the Loving Memory of my LoLa, coming back to your heart ..`## MGSMGS stands for... Many-Geeks-Searching... and thats it. Hint: `1+1 is 2, and 1+1 is not 3`We still believe on 1-Epoch should be enough, so we just did 1 Epoch only as usual.## DatasetUsed here the first decent (corpora & size) dataset on the hub: `Magpie-Align/Magpie-Pro-300K-Filtered`5 unmodified lines[All versions available](https://huggingface.co/fblgit/TheBeagle-v2beta-MGS-GGUF/tree/main)Quantz by bartowski:https://huggingface.co/bartowski/TheBeagle-v2beta-32B-MGS-GGUF## Training[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)40 unmodified lines| 0.715 | 0.9629 | 798 | 0.5378 |# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_fblgit__TheBeagle-v2beta-32B-MGS)| Metric |Value|9 unmodified lines## Thanks- Qwen Team for their outstanding model- MagPie Team for contributing plenty of datasets- Cybertron Cloud Compute12345678915 unmodified lines25262728293031328 unmodified lines41424344454647488 unmodified lines57585960616263648 unmodified lines73747576777879808 unmodified lines899091929394959610 unmodified lines1071081091101111121131142 unmodified lines1171181191201211221231241251261271281291301311321335 unmodified lines13914014114214314414514614714840 unmodified lines1891901911921931941959 unmodified lines205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234---language:- enlicense: otherlicense_name: qwenlicense_link: https://huggingface.co/Qwen/Qwen2.5-72B-Instruct/blob/main/LICENSElibrary_name: transformersbase_model:- Qwen/Qwen2.5-32B-Instruct15 unmodified linesvalue: 45.03name: strict accuracysource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 58.07name: normalized accuracysource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 39.43name: exact matchsource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 20.13name: acc_normsource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation8 unmodified linesvalue: 24.5name: acc_normsource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard- task:type: text-generation10 unmodified linesvalue: 54.57name: accuracysource:url: >-https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=fblgit/TheBeagle-v2beta-32B-MGSname: Open LLM Leaderboard---2 unmodified linesWe didn't applied our known `UNA` algorithm to the forward pass, but they are entirely compatible and operates in different parts of the neural network and in different ways, tho they both can be seen as a regularization technique.## CHANGELOG**UPDATE**: 26/Oct* Updated `tokenizer_config.json` (from the base_model)* Regenerated Quants (being uploaded)* Re-submitted Leaderboard Evaluation, MATH & IFeval have relevant updates* Aligned LICENSE with `Qwen` terms.## MGSMGS stands for... Many-Geeks-Searching... and thats it. Hint: `1+1 is 2, and 1+1 is not 3`We still believe on 1-Epoch should be enough, so we just did 1 Epoch only.## DatasetUsed here the first decent (corpora & size) dataset on the hub: `Magpie-Align/Magpie-Pro-300K-Filtered`5 unmodified lines[All versions available](https://huggingface.co/fblgit/TheBeagle-v2beta-MGS-GGUF/tree/main)## Licensing terms:**On top of the Qwen LICENSE, we add an extra term for derivatives to include "Beagle" or "MGS" on the model name, this will help us to track better the study. Thank you**## Training[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)40 unmodified lines| 0.715 | 0.9629 | 798 | 0.5378 |# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard) without chat template.Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_fblgit__TheBeagle-v2beta-32B-MGS)| Metric |Value|9 unmodified lines## Thanks- Qwen Team for their outstanding model- MagPie Team for contributing plenty of datasets- Cybertron Cloud Compute# Citations```@misc{thebeagle-v2,title={TheBeagle v2: MGS},author={Xavier Murias},year={2024},publisher = {HuggingFace},journal = {HuggingFace repository},howpublished = {\url{https://huggingface.co/fblgit/TheBeagle-v2beta-32B-MGS}},}@misc{qwen2.5,title = {Qwen2.5: A Party of Foundation Models},url = {https://qwenlm.github.io/blog/qwen2.5/},author = {Qwen Team},month = {September},year = {2024}}@article{qwen2,title={Qwen2 Technical Report},author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan},journal={arXiv preprint arXiv:2407.10671},year={2024}}```
README.md+53-14