Instructions to use unalignment/weeeeee.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unalignment/weeeeee.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unalignment/weeeeee.0") 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("unalignment/weeeeee.0") model = AutoModelForCausalLM.from_pretrained("unalignment/weeeeee.0", 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 unalignment/weeeeee.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unalignment/weeeeee.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unalignment/weeeeee.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unalignment/weeeeee.0
- SGLang
How to use unalignment/weeeeee.0 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 "unalignment/weeeeee.0" \ --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": "unalignment/weeeeee.0", "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 "unalignment/weeeeee.0" \ --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": "unalignment/weeeeee.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use unalignment/weeeeee.0 with Docker Model Runner:
docker model run hf.co/unalignment/weeeeee.0
Commit History
-
Upload LlamaForCausalLM
Verified signature594bf24 -
Upload tokenizer
Verified signature36c633b -
Upload tokenizer
Verified signature8dd3bad -
Upload LlamaForCausalLM
Verified signature0096ee1 -
Upload tokenizer
Verified signature72e4545
-
Upload LlamaForCausalLM
Verified signature2d16ed9 -
Upload tokenizer
Verified signature6580e6a -
Upload LlamaForCausalLM
Verified signature0b0aef7 -
Upload tokenizer
Verified signatureba0ce53 -
Upload LlamaForCausalLM
Verified signature5a51492 -
Upload tokenizer
Verified signature1025697
-
Upload LlamaForCausalLM
Verified signature6bc1110 -
Upload tokenizer
Verified signature719439a -
Upload LlamaForCausalLM
Verified signatureefa1b4b -
Upload tokenizer
Verified signature737693a
-
Upload LlamaForCausalLM
Verified signature0fadd0a -
Upload tokenizer
Verified signatured0432ca -
Upload LlamaForCausalLM
Verified signature5fd47bd -
Upload tokenizer
Verified signature42e858b -
Upload LlamaForCausalLM
Verified signature4760ff0 -
Upload tokenizer
Verified signaturebbb44ed -
Upload LlamaForCausalLM
Verified signature2a1d791 -
Upload tokenizer
Verified signaturee28911d -
Upload LlamaForCausalLM
Verified signature498e6a1 -
Upload tokenizer
Verified signatureb2500c8
-
Upload LlamaForCausalLM
Verified signatureb1b8739 -
Upload tokenizer
Verified signaturea1d3bbd -
Upload LlamaForCausalLM
Verified signaturec2c7287 -
Upload tokenizer
Verified signature40cec43 -
Upload LlamaForCausalLM
Verified signatureca1420b -
Upload tokenizer
Verified signaturefe1b606
-
Upload LlamaForCausalLM
Verified signatureff6dedc -
Upload tokenizer
Verified signaturea0158fe -
Upload LlamaForCausalLM
Verified signaturef118e6e -
Upload tokenizer
Verified signatureafbf607 -
Upload LlamaForCausalLM
Verified signature5d09acc -
Upload tokenizer
Verified signature91d88fd -
initial commit
Verified signature487b0e6