Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
qwen3.5
chat
creative-writing
altworld
fp8
compressed-tensors
conversational
Run this model with HF Jobs
Run HemmingwayAI/Astrea-R8-Chat-9B-FP8 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/HemmingwayAI/Astrea-R8-Chat-9B-FP8. 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/HemmingwayAI/Astrea-R8-Chat-9B-FP8 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/HemmingwayAI/Astrea-R8-Chat-9B-FP8. 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.
Instructions to use HemmingwayAI/Astrea-R8-Chat-9B-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HemmingwayAI/Astrea-R8-Chat-9B-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HemmingwayAI/Astrea-R8-Chat-9B-FP8") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("HemmingwayAI/Astrea-R8-Chat-9B-FP8") model = AutoModelForMultimodalLM.from_pretrained("HemmingwayAI/Astrea-R8-Chat-9B-FP8", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HemmingwayAI/Astrea-R8-Chat-9B-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HemmingwayAI/Astrea-R8-Chat-9B-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HemmingwayAI/Astrea-R8-Chat-9B-FP8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/HemmingwayAI/Astrea-R8-Chat-9B-FP8
- SGLang
How to use HemmingwayAI/Astrea-R8-Chat-9B-FP8 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 "HemmingwayAI/Astrea-R8-Chat-9B-FP8" \ --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": "HemmingwayAI/Astrea-R8-Chat-9B-FP8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "HemmingwayAI/Astrea-R8-Chat-9B-FP8" \ --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": "HemmingwayAI/Astrea-R8-Chat-9B-FP8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use HemmingwayAI/Astrea-R8-Chat-9B-FP8 with Docker Model Runner:
docker model run hf.co/HemmingwayAI/Astrea-R8-Chat-9B-FP8
Upload portable FP8 release
Browse files123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111---license: apache-2.0base_model: Altworld/Astrea-R8-Chat-9Bbase_model_relation: quantizedpipeline_tag: image-text-to-textlibrary_name: transformerslanguage:- entags:- qwen3.5- chat- creative-writing- altworld- fp8- compressed-tensors---# Altworld Astrea R8 Chat 9B — FP8This is the portable FP8 release of[Altworld/Astrea-R8-Chat-9B](https://huggingface.co/Altworld/Astrea-R8-Chat-9B),Altworld's open 9B creative-writing and chat model.**[Try Astrea](https://chat.altworld.io)** ·**[API](https://altworld.io/developer)** ·**[Documentation](https://astrea.altworld.io/docs/)**The checkpoint uses LLM Compressor's `compressed-tensors` format and can beserved directly by compatible versions of vLLM. It contains six safetensorshards totalling 11.09 GiB, compared with 17.53 GiB for the BF16 weights.## QuantizationThe checkpoint was generated from the released merged BF16 model with:- LLM Compressor 0.12.0;- compressed-tensors 0.17.1;- `FP8_DYNAMIC`, using E4M3 weights and BF16 per-output-channel scales;- dynamic per-token FP8 activation quantization at inference time;- data-free round-to-nearest post-training quantization.All 248 two-dimensional language-model linear weights are stored in FP8. Thefollowing sensitive or non-linear components remain in BF16:- input token embeddings;- `lm_head`;- Qwen3.5 linear-attention convolution kernels;- the complete vision tower.No calibration or training dataset was used during conversion.## Running with vLLMUse a recent vLLM release with `compressed-tensors` support and an acceleratorwith supported FP8 kernels:```bashvllm serve Altworld/Astrea-R8-Chat-9B-FP8 \--max-model-len 32768 \--gpu-memory-utilization 0.90```The quantization configuration is embedded in `config.json`; no separate`--quantization` argument should be necessary.Recommended sampling for writing:```json{"temperature": 0.8,"min_p": 0.025,"repetition_penalty": 1.08}```Use `temperature: 0.2` for ordinary factual chat. The bundled chat templateworks without a system prompt and defaults to hidden thinking.## ValidationBefore upload, this artifact passed the following local checks:- every original tensor is present with the expected shape;- all 248 targeted weights are E4M3 with matching BF16 channel scales;- all excluded components retain their original BF16 dtype;- the sharded safetensor index exactly matches all 1,008 stored tensors;- `AutoConfig`, `AutoTokenizer`, and `AutoProcessor` load successfully;- `Qwen3_5ForConditionalGeneration` loads the compressed checkpoint andcompletes a text-generation smoke test.The local Transformers smoke test dequantizes weights for its CPU fallback andtherefore does not measure FP8 serving speed. Quantization changes modelnumerics, so applications should evaluate this checkpoint on their own promptsbefore replacing the BF16 release. Quant-specific Altworldbench results are notclaimed on this card.## Model quality and limitationsSee the [BF16 model card](https://huggingface.co/Altworld/Astrea-R8-Chat-9B)for training lineage, benchmark methodology, samples, usage guidance, andlimitations. In particular:- Astrea is text-first; inherited vision behavior was not part of its releaseevaluation;- English dominates training and evaluation;- outputs can be confidently wrong and must not be treated as authoritative inhigh-stakes settings.## LicenseApache-2.0, matching the source model. See `LICENSE` and `NOTICE`.
README.md+108