Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use wolfram/miqu-1-103b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wolfram/miqu-1-103b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wolfram/miqu-1-103b") 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("wolfram/miqu-1-103b") model = AutoModelForCausalLM.from_pretrained("wolfram/miqu-1-103b", 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 wolfram/miqu-1-103b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wolfram/miqu-1-103b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wolfram/miqu-1-103b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wolfram/miqu-1-103b
- SGLang
How to use wolfram/miqu-1-103b 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 "wolfram/miqu-1-103b" \ --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": "wolfram/miqu-1-103b", "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 "wolfram/miqu-1-103b" \ --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": "wolfram/miqu-1-103b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wolfram/miqu-1-103b with Docker Model Runner:
docker model run hf.co/wolfram/miqu-1-103b
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- fe1536a63b1a2016c6f739310ba4a93c78815e7745238e31c373e1aa8adba729 (20f46c1a1b42dc6f836df816a84a7caded152fe6) - c87c4796d227727b9429f3b578e29f93bd932532ceb61adf0a48333ff34e9149 (9974cf87342c6963971b7b740834314372b71d31) - 94dd580e56d06aa501d1ed4fd1a5f2f8d73c8844abda728d92655211bcecd601 (0e0cebdf4b67c92725c9cc6a109061e1da90c86c) - d9379715e4bd19ab34453593e98115758ad6f362bbad686d8ced2364418c7124 (2190d59bbc720ed0f492e4143a9ee0344ac3f793) - ac5482044f40197a36d762fccbabe923c8eb9586c6ab836aae4a34aef21b95c3 (7f8271bbf51cedcf4a379c76c9f4e55518c16f6e) - a8507fea5f863d28b5daaf02cf3a2769479ec50ec2729f96f0700c07d3812ba1 (f109d05607e4526f9a4ca7bf89b0f6dfef03acf7) - 9740abdb264a9f69e51c6e1bc0ffd51a8b4709852b5cbe8adf855f921ce5275a (fc7a13d88e170e1ba2eecde7fa3b6167b73df154) - 2088e0259b43f017d11d2c6a089116acad1967839a45119f59057de883e65b9a (70e719300f1d4864ae148af5d83f9b8a2822d010) - 825a69385ce72bd51cdf59b4e49ef99771e03aef86d069dad06fc5b7bbc5a159 (c5ce636c30c0cc2c4742ea0b196f197144eb30b0) - 3e37acd9…37bd2ba