Instructions to use IFM/Amber with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IFM/Amber with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IFM/Amber")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IFM/Amber") model = AutoModelForCausalLM.from_pretrained("IFM/Amber", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IFM/Amber with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IFM/Amber" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IFM/Amber", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/IFM/Amber
- SGLang
How to use IFM/Amber 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/Amber" \ --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/Amber", "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/Amber" \ --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/Amber", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use IFM/Amber with Docker Model Runner:
docker model run hf.co/IFM/Amber
Commit History
-
Update README.md
Verified signature2d35937 -
Add MOT badge to README.md file (#7)
Verified signature- Add MOT badge to README.md file (8df5d502097824625b86905dc870f64d8cc07d10) Co-authored-by: Arnaud J Le Hors <lehors@users.noreply.huggingface.co>ae66f46
-
Update README.md
Verified signature83c188f
-
Update config.json
Verified signature72c6b92
-
Update README.md
Verified signature810bdda -
Update README.md
Verified signature47289d9 -
Update README.md
Verified signature6c0828d -
Update README.md
Verified signature177f9ed -
Update README.md
Verified signature43ca933 -
Update README.md
Verified signatureb59f802 -
Update README.md
Verified signatureb832ea9 -
Update README.md
Verified signature1aa4b60 -
Update README.md
Verified signaturef8ccff6 -
Update README.md
Verified signature00a1610 -
Update README.md
Verified signature3ebebc5
-
Update README.md
Verified signature16cd80e
-
Delete pytorch_model.bin.index.json
Verified signatured7392c2 -
Delete pytorch_model-00006-of-00006.bin
Verified signature8c962f0 -
Delete pytorch_model-00005-of-00006.bin
Verified signaturea6c68eb -
Delete pytorch_model-00004-of-00006.bin
Verified signature6012e32 -
Delete pytorch_model-00003-of-00006.bin
Verified signature6d1d245 -
Delete pytorch_model-00002-of-00006.bin
Verified signature48fe9a4 -
Delete pytorch_model-00001-of-00006.bin
Verified signaturec92ca7e -
Upload folder using huggingface_hub
Verified signaturec0d5576
-
Update README.md
e691feb
-
Add README (#2)
- Add README (7e833474a82e47770359739ca56b2935fac8767a)a1fb934 -
Upload folder using huggingface_hub
Committing checkpoint ckpt_35958d76d5
-
initial commit
9a2661d