Instructions to use Infinimol/miiqu-f16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Infinimol/miiqu-f16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Infinimol/miiqu-f16") 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("Infinimol/miiqu-f16") model = AutoModelForCausalLM.from_pretrained("Infinimol/miiqu-f16", 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 Infinimol/miiqu-f16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Infinimol/miiqu-f16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Infinimol/miiqu-f16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Infinimol/miiqu-f16
- SGLang
How to use Infinimol/miiqu-f16 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 "Infinimol/miiqu-f16" \ --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": "Infinimol/miiqu-f16", "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 "Infinimol/miiqu-f16" \ --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": "Infinimol/miiqu-f16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Infinimol/miiqu-f16 with Docker Model Runner:
docker model run hf.co/Infinimol/miiqu-f16
Commit History
-
Update README.md
Verified signature395d639
-
Update README.md
Verified signature8a3fa2f -
Upload model-00018-of-00019.safetensors with huggingface_hub
Verified signaturef536789 -
Upload model-00016-of-00019.safetensors with huggingface_hub
Verified signaturedd78f36 -
Upload model-00015-of-00019.safetensors with huggingface_hub
Verified signature7a2f62e -
Upload model-00017-of-00019.safetensors with huggingface_hub
Verified signature773325b -
Upload model-00013-of-00019.safetensors with huggingface_hub
Verified signature04f58bb -
Upload model-00010-of-00019.safetensors with huggingface_hub
Verified signature3ebf5df -
Upload model-00011-of-00019.safetensors with huggingface_hub
Verified signatureab25410 -
Upload model-00012-of-00019.safetensors with huggingface_hub
Verified signature114173b -
Upload model-00019-of-00019.safetensors with huggingface_hub
Verified signatureb04226d -
Upload 7 files
Verified signature4a07240 -
Upload model-00014-of-00019.safetensors with huggingface_hub
Verified signatureb75764d -
Upload model-00008-of-00019.safetensors with huggingface_hub
Verified signature5a9da07 -
Upload model-00007-of-00019.safetensors with huggingface_hub
Verified signature2450ab7 -
Upload model-00006-of-00019.safetensors with huggingface_hub
Verified signaturefcfc453 -
Upload model-00005-of-00019.safetensors with huggingface_hub
Verified signature8a3a210 -
Upload model-00009-of-00019.safetensors with huggingface_hub
Verified signature6ed8ee6 -
Upload model-00004-of-00019.safetensors with huggingface_hub
Verified signaturef220f64 -
Upload model-00003-of-00019.safetensors with huggingface_hub
Verified signature4fcaaf3 -
Upload model-00002-of-00019.safetensors with huggingface_hub
Verified signature9421b52 -
Upload model-00001-of-00019.safetensors with huggingface_hub
Verified signature5f3e311 -
initial commit
Verified signature67dad8a