Instructions to use giantdev/02mmm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use giantdev/02mmm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="giantdev/02mmm") 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/02mmm") model = AutoModelForCausalLM.from_pretrained("giantdev/02mmm", 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/02mmm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "giantdev/02mmm" # 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/02mmm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/giantdev/02mmm
- SGLang
How to use giantdev/02mmm 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/02mmm" \ --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/02mmm", "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/02mmm" \ --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/02mmm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use giantdev/02mmm with Docker Model Runner:
docker model run hf.co/giantdev/02mmm
Commit History
-
Upload LlamaForCausalLM
Verified signature5108b74 -
Upload tokenizer
Verified signature0923e7b
-
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature84e1b14 -
Upload model.safetensors.index.json with huggingface_hub
Verified signatured518950 -
Upload .gitattributes with huggingface_hub
Verified signature00880cd -
Upload README.md with huggingface_hub
Verified signature52be5db -
Upload generation_config.json with huggingface_hub
Verified signatured2081f7 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature462c26c -
Upload tokenizer_config.json with huggingface_hub
Verified signature67a0a05 -
Upload config.json with huggingface_hub
Verified signaturea3f054a -
Upload tokenizer.json with huggingface_hub
Verified signature2314135 -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signature251d6cb -
Upload special_tokens_map.json with huggingface_hub
Verified signaturef914131 -
Upload tokenizer.model with huggingface_hub
Verified signature0175fb9 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature5546653 -
Upload .gitattributes with huggingface_hub
Verified signature035c716 -
Upload README.md with huggingface_hub
Verified signature01a182e -
Upload generation_config.json with huggingface_hub
Verified signaturee778c1a -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signaturea946eab -
Upload tokenizer_config.json with huggingface_hub
Verified signature8052e61 -
Upload config.json with huggingface_hub
Verified signaturea5480e3 -
Upload tokenizer.json with huggingface_hub
Verified signaturef82bafc -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signature30d91e1 -
Upload special_tokens_map.json with huggingface_hub
Verified signature73a404b -
Upload tokenizer.model with huggingface_hub
Verified signaturecf27269 -
initial commit
Verified signature90e498f