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
Commit History
-
Update README.md
Verified signature5793b08
-
Update README.md
Verified signature183a951
-
Update README.md
Verified signature4c6dc7a
-
Delete pytorch_model.bin
Verified signaturefb3fed3 -
Upload folder using huggingface_hub
Verified signaturedca13ab
-
Update README.md
74fba62
-
Add instructions for Ollama
5425cac
-
Update README.md
7cb16bf
-
Update README.md
7bc6f92
-
Update README.md
2320ed4
-
Update README.md
add new commands + scriptf41eb8e
-
Update README.md
3b58f6d -
Update README.md
bd7a07f -
Update README.md
a425008 -
Update README.md
3c26e9a
-
Create README.md (#1)
- Create README.md (a0ea6b36e77a89bd45d4ebc02901834a5f3f4ab5) - Update README.md (7e22dc6393e927275b4ca5aeb84e391a74c55741) - Update README.md (588a73443c5759c0942cf46df9a7ba076077fcfa) - Update README.md (afb0ba5a01b0a12609c7e4cf585aeaa00cdcbbd5) - Update README.md (7462eafb9990af995f92293cee29c62b7f59729f)0b53500
-
Upload tokenizer.json with huggingface_hub
Committing tokenizer.json4690461 -
Upload tokenizer.model with huggingface_hub
Committing tokenizer.model7241a65 -
Upload tokenizer_config.json with huggingface_hub
Committing tokenizer_config.json66cb7d6 -
Upload special_tokens_map.json with huggingface_hub
Committing special_tokens_map.json26934f5 -
Upload pytorch_model.bin with huggingface_hub
Committing pytorch_model.bin956504f -
Upload generation_config.json with huggingface_hub
Committing generation_config.json8910801 -
Upload config.json with huggingface_hub
Committing config.jsond9ce6f7
-
initial commit
d5843a9