Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
text-generation-inference
fp8
Instructions to use Alphatao/Affine-0000000 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alphatao/Affine-0000000 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Alphatao/Affine-0000000", trust_remote_code=True) 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("Alphatao/Affine-0000000", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Alphatao/Affine-0000000", trust_remote_code=True, 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 Alphatao/Affine-0000000 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Alphatao/Affine-0000000" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alphatao/Affine-0000000", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Alphatao/Affine-0000000
- SGLang
How to use Alphatao/Affine-0000000 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 "Alphatao/Affine-0000000" \ --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": "Alphatao/Affine-0000000", "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 "Alphatao/Affine-0000000" \ --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": "Alphatao/Affine-0000000", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Alphatao/Affine-0000000 with Docker Model Runner:
docker model run hf.co/Alphatao/Affine-0000000
Commit History
-
Upload model-00033-of-000163.safetensors with huggingface_hub
Verified signature2a61cda -
Upload paper/assembly_of_experts.pdf with huggingface_hub
Verified signature81c17ba -
Upload tokenizer_config.json with huggingface_hub
Verified signature6f43286 -
Upload tokenizer.json with huggingface_hub
Verified signature4998f79 -
Upload model-00127-of-000163.safetensors with huggingface_hub
Verified signature5d83441 -
Upload model-00057-of-000163.safetensors with huggingface_hub
Verified signature4138a56 -
Upload model-00137-of-000163.safetensors with huggingface_hub
Verified signature0543a87 -
Upload model-00029-of-000163.safetensors with huggingface_hub
Verified signatured36998e -
Upload model-00020-of-000163.safetensors with huggingface_hub
Verified signature8667299 -
Upload model-00071-of-000163.safetensors with huggingface_hub
Verified signature5fe478c -
Upload model-00130-of-000163.safetensors with huggingface_hub
Verified signature1d9bb74 -
Upload model-00044-of-000163.safetensors with huggingface_hub
Verified signature6511a98 -
Upload model-00052-of-000163.safetensors with huggingface_hub
Verified signature605549e -
Upload model-00076-of-000163.safetensors with huggingface_hub
Verified signaturee312504 -
Upload model-00030-of-000163.safetensors with huggingface_hub
Verified signature48174bf -
Upload model-00036-of-000163.safetensors with huggingface_hub
Verified signature31bed38 -
Upload model-00003-of-000163.safetensors with huggingface_hub
Verified signaturea502280 -
Upload model-00028-of-000163.safetensors with huggingface_hub
Verified signaturee5c1b84 -
Upload model-00146-of-000163.safetensors with huggingface_hub
Verified signature9b7a843 -
Upload model-00140-of-000163.safetensors with huggingface_hub
Verified signature0a6f757 -
Upload model-00088-of-000163.safetensors with huggingface_hub
Verified signaturebd1d225 -
Upload model-00100-of-000163.safetensors with huggingface_hub
Verified signatured1a28d9 -
Upload model-00083-of-000163.safetensors with huggingface_hub
Verified signaturea216b3b -
Upload model-00054-of-000163.safetensors with huggingface_hub
Verified signatured841ee6 -
Upload model-00005-of-000163.safetensors with huggingface_hub
Verified signature49de8dc -
Upload model-00049-of-000163.safetensors with huggingface_hub
Verified signature8722f53 -
Upload model-00026-of-000163.safetensors with huggingface_hub
Verified signature59c105a -
Upload model-00009-of-000163.safetensors with huggingface_hub
Verified signature2b49038 -
Upload model-00128-of-000163.safetensors with huggingface_hub
Verified signatureef72a6d -
Upload model.safetensors.index.json with huggingface_hub
Verified signatureb30e31f -
Upload model-00031-of-000163.safetensors with huggingface_hub
Verified signature49fc574 -
Upload model-00046-of-000163.safetensors with huggingface_hub
Verified signature34ecf2a -
Upload model-00050-of-000163.safetensors with huggingface_hub
Verified signature2b23c6d -
Upload model-00104-of-000163.safetensors with huggingface_hub
Verified signature356d48f -
Upload model-00051-of-000163.safetensors with huggingface_hub
Verified signaturea8c078d -
Upload model-00163-of-000163.safetensors with huggingface_hub
Verified signaturee75d67f -
Upload configuration_deepseek.py with huggingface_hub
Verified signaturec095a04 -
Upload model-00093-of-000163.safetensors with huggingface_hub
Verified signature8fa1d5a -
Upload config.json with huggingface_hub
Verified signaturead8e325 -
Upload model-00053-of-000163.safetensors with huggingface_hub
Verified signature71e5602 -
Upload model-00084-of-000163.safetensors with huggingface_hub
Verified signaturea93d191 -
Upload model-00108-of-000163.safetensors with huggingface_hub
Verified signature02b6a5b -
Upload LICENSE.DeepSeek with huggingface_hub
Verified signature77f3aef -
Upload model-00110-of-000163.safetensors with huggingface_hub
Verified signature8c4cfc4 -
Upload model-00152-of-000163.safetensors with huggingface_hub
Verified signaturec6303da -
Upload model-00099-of-000163.safetensors with huggingface_hub
Verified signature96e84af -
Upload model-00095-of-000163.safetensors with huggingface_hub
Verified signature9ff4a44 -
Upload model-00123-of-000163.safetensors with huggingface_hub
Verified signatureb06a81b -
Upload model-00144-of-000163.safetensors with huggingface_hub
Verified signature6ee2679 -
Upload model-00124-of-000163.safetensors with huggingface_hub
Verified signaturedaa5c92