Instructions to use giantdev/new_04mmm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use giantdev/new_04mmm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="giantdev/new_04mmm") 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("giantdev/new_04mmm") model = AutoModelForCausalLM.from_pretrained("giantdev/new_04mmm", 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 giantdev/new_04mmm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "giantdev/new_04mmm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "giantdev/new_04mmm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/giantdev/new_04mmm
- SGLang
How to use giantdev/new_04mmm 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 "giantdev/new_04mmm" \ --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": "giantdev/new_04mmm", "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 "giantdev/new_04mmm" \ --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": "giantdev/new_04mmm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use giantdev/new_04mmm with Docker Model Runner:
docker model run hf.co/giantdev/new_04mmm
Commit History
-
Upload config.json with huggingface_hub
Verified signature4626c16 -
Upload tokenizer.json with huggingface_hub
Verified signature0384244 -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signature5f653ff -
Upload special_tokens_map.json with huggingface_hub
Verified signature1f6495d -
Upload tokenizer.model with huggingface_hub
Verified signature1016107 -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature23193e4 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature062cd1e -
Upload .gitattributes with huggingface_hub
Verified signature7b6f599 -
Upload README.md with huggingface_hub
Verified signatureba4bb23 -
Upload generation_config.json with huggingface_hub
Verified signature8d53935 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature19c2f89 -
Upload tokenizer_config.json with huggingface_hub
Verified signatureaf4ec54 -
Upload config.json with huggingface_hub
Verified signature3d9c089 -
Upload tokenizer.json with huggingface_hub
Verified signature7c1e4ec -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signature967a8ad -
Upload special_tokens_map.json with huggingface_hub
Verified signaturea0e0011 -
Upload tokenizer.model with huggingface_hub
Verified signaturec32af66 -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature51f457c -
Upload model.safetensors.index.json with huggingface_hub
Verified signature7d324b4 -
Upload .gitattributes with huggingface_hub
Verified signature71284c2 -
Upload README.md with huggingface_hub
Verified signature76ae85e -
Upload generation_config.json with huggingface_hub
Verified signatureb194911 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature826bc5b -
Upload tokenizer_config.json with huggingface_hub
Verified signaturedb26b91 -
Upload config.json with huggingface_hub
Verified signature3367a39 -
Upload tokenizer.json with huggingface_hub
Verified signature72bec9f -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signature0d05c61 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturee151c29 -
Upload tokenizer.model with huggingface_hub
Verified signature785f3be -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature4e223be -
Upload model.safetensors.index.json with huggingface_hub
Verified signature7513588 -
Upload .gitattributes with huggingface_hub
Verified signature0f1de08 -
Upload README.md with huggingface_hub
Verified signature4b17e7a -
Upload generation_config.json with huggingface_hub
Verified signaturec68db10 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature1bc630e -
Upload tokenizer_config.json with huggingface_hub
Verified signature373a01f -
Upload config.json with huggingface_hub
Verified signatureaa1a95f -
Upload tokenizer.json with huggingface_hub
Verified signature8cba0bc -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signaturebbdf565 -
Upload special_tokens_map.json with huggingface_hub
Verified signature054f64e -
Upload tokenizer.model with huggingface_hub
Verified signature28fe48a -
initial commit
Verified signature2a0fbda