Run this model with HF Jobs
Run IFM/AmberChat 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/IFM/AmberChat. 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/IFM/AmberChat 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/IFM/AmberChat. 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/IFM/AmberChat. 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 IFM/AmberChat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IFM/AmberChat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IFM/AmberChat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IFM/AmberChat") model = AutoModelForCausalLM.from_pretrained("IFM/AmberChat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IFM/AmberChat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IFM/AmberChat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IFM/AmberChat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/IFM/AmberChat
- SGLang
How to use IFM/AmberChat 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 "IFM/AmberChat" \ --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": "IFM/AmberChat", "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 "IFM/AmberChat" \ --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": "IFM/AmberChat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use IFM/AmberChat with Docker Model Runner:
docker model run hf.co/IFM/AmberChat
Adding Evaluation Results
#4
by leaderboard-pr-bot - opened
123456789101112131415161718192021222324123 unmodified lines148149150151---license: apache-2.0datasets:- WizardLM/WizardLM_evol_instruct_V2_196k- icybee/share_gpt_90k_v1language:- enwidget:- example_title: "example 1"text: "How do I mount a tv to drywall safely?"output:text: "Mounting a TV to drywall safely is crucial to ensure the longevity of your TV and the wall. Here's a step-by-step guide on how to do it safely:\n 1. Choose the right mount: Choose a mount that is compatible with your TV and the wall. Make sure the mount is rated for drywall and not just wood or concrete.\n 2. Prepare the wall: Before mounting the TV, make sure the wall is clean and free from any debris or paint. Use a stud finder to locate the studs in the wall.\n 3. Install the mount: Follow the manufacturer's instructions for mounting the TV to the wall. Use appropriate hardware and tools to secure the mount to the wall.\n 4. Level the TV: Level the TV on the mount using a spirit level or a leveling kit provided by the mount manufacturer.\n 5. Attach the TV to the mount: Attach the TV to the mount using the appropriate hardware and tools. Tighten the bolts and screws to ensure the TV is securely attached.\n 6. Connect the cables: Connect the TV cables to the appropriate ports on the back of the TV and the mount.\n 7. Test the mount: Test the mount to ensure it's secure and stable. Adjust the mount as needed to ensure the TV is level and secure.\n Mounting a TV to drywall safely is crucial to avoid damaging the wall or the TV. Follow these steps carefully and use appropriate tools and hardware to ensure a secure and stable installation."- example_title: "example 2"text: "Happy is to sad as calm is to _."output:text: "The adjective that can be used to describe the opposite of calm is \"anxious\" or \"stressed.\" So, from happy to sad, we can say that happy is to sad as calm is to anxious or stressed."library_name: transformerspipeline_tag: text-generationtags:- nlp- llm---# AmberChat123 unmodified linesarchivePrefix={arXiv},primaryClass={cs.CL}}```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146123 unmodified lines270271272273274275276277278279280281282283284285286---language:- enlicense: apache-2.0library_name: transformerstags:- nlp- llmdatasets:- WizardLM/WizardLM_evol_instruct_V2_196k- icybee/share_gpt_90k_v1widget:- example_title: example 1text: How do I mount a tv to drywall safely?output:text: "Mounting a TV to drywall safely is crucial to ensure the longevity of your\\ TV and the wall. Here's a step-by-step guide on how to do it safely:\n 1.\\ Choose the right mount: Choose a mount that is compatible with your TV and\\ the wall. Make sure the mount is rated for drywall and not just wood or concrete.\n\\ 2. Prepare the wall: Before mounting the TV, make sure the wall is clean and\\ free from any debris or paint. Use a stud finder to locate the studs in the\\ wall.\n 3. Install the mount: Follow the manufacturer's instructions for mounting\\ the TV to the wall. Use appropriate hardware and tools to secure the mount\\ to the wall.\n 4. Level the TV: Level the TV on the mount using a spirit level\\ or a leveling kit provided by the mount manufacturer.\n 5. Attach the TV to\\ the mount: Attach the TV to the mount using the appropriate hardware and tools.\\ Tighten the bolts and screws to ensure the TV is securely attached.\n 6. Connect\\ the cables: Connect the TV cables to the appropriate ports on the back of\\ the TV and the mount.\n 7. Test the mount: Test the mount to ensure it's secure\\ and stable. Adjust the mount as needed to ensure the TV is level and secure.\n\\ Mounting a TV to drywall safely is crucial to avoid damaging the wall or the\\ TV. Follow these steps carefully and use appropriate tools and hardware to\\ ensure a secure and stable installation."- example_title: example 2text: Happy is to sad as calm is to _.output:text: The adjective that can be used to describe the opposite of calm is "anxious"or "stressed." So, from happy to sad, we can say that happy is to sad as calmis to anxious or stressed.pipeline_tag: text-generationmodel-index:- name: AmberChatresults:- task:type: text-generationname: Text Generationdataset:name: AI2 Reasoning Challenge (25-Shot)type: ai2_arcconfig: ARC-Challengesplit: testargs:num_few_shot: 25metrics:- type: acc_normvalue: 42.92name: normalized accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=LLM360/AmberChatname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: HellaSwag (10-Shot)type: hellaswagsplit: validationargs:num_few_shot: 10metrics:- type: acc_normvalue: 74.01name: normalized accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=LLM360/AmberChatname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: MMLU (5-Shot)type: cais/mmluconfig: allsplit: testargs:num_few_shot: 5metrics:- type: accvalue: 38.75name: accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=LLM360/AmberChatname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: TruthfulQA (0-shot)type: truthful_qaconfig: multiple_choicesplit: validationargs:num_few_shot: 0metrics:- type: mc2value: 41.18source:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=LLM360/AmberChatname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: Winogrande (5-shot)type: winograndeconfig: winogrande_xlsplit: validationargs:num_few_shot: 5metrics:- type: accvalue: 66.61name: accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=LLM360/AmberChatname: Open LLM Leaderboard- task:type: text-generationname: Text Generationdataset:name: GSM8k (5-shot)type: gsm8kconfig: mainsplit: testargs:num_few_shot: 5metrics:- type: accvalue: 5.53name: accuracysource:url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=LLM360/AmberChatname: Open LLM Leaderboard---# AmberChat123 unmodified linesarchivePrefix={arXiv},primaryClass={cs.CL}}```# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_LLM360__AmberChat)| Metric |Value||---------------------------------|----:||Avg. |44.84||AI2 Reasoning Challenge (25-Shot)|42.92||HellaSwag (10-Shot) |74.01||MMLU (5-Shot) |38.75||TruthfulQA (0-shot) |41.18||Winogrande (5-shot) |66.61||GSM8k (5-shot) | 5.53|
README.md+150-15