Text Generation
Transformers
Safetensors
deepseek_v3
conversational
custom_code
text-generation-inference
fp8
Instructions to use dasLOL/Affine-lol with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dasLOL/Affine-lol with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dasLOL/Affine-lol", 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("dasLOL/Affine-lol", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("dasLOL/Affine-lol", 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 dasLOL/Affine-lol with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dasLOL/Affine-lol" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dasLOL/Affine-lol", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dasLOL/Affine-lol
- SGLang
How to use dasLOL/Affine-lol 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 "dasLOL/Affine-lol" \ --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": "dasLOL/Affine-lol", "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 "dasLOL/Affine-lol" \ --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": "dasLOL/Affine-lol", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dasLOL/Affine-lol with Docker Model Runner:
docker model run hf.co/dasLOL/Affine-lol
Commit History
-
Update generation_config.json
Verified signature735b09a
-
Update tokenizer_config.json
Verified signatureda36344
-
Upload tokenizer_config.json with huggingface_hub
Verified signature9411087 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature6aebb14 -
Upload model-00162-of-000163.safetensors with huggingface_hub
Verified signature974db6f -
Upload model-00159-of-000163.safetensors with huggingface_hub
Verified signature01b6e22 -
Upload model-00158-of-000163.safetensors with huggingface_hub
Verified signature54db6ea -
Upload model-00153-of-000163.safetensors with huggingface_hub
Verified signature2f219fa -
Upload model-00145-of-000163.safetensors with huggingface_hub
Verified signature8adb093 -
Upload model-00142-of-000163.safetensors with huggingface_hub
Verified signaturede9aef2 -
Upload model-00139-of-000163.safetensors with huggingface_hub
Verified signature1250009 -
Upload model-00138-of-000163.safetensors with huggingface_hub
Verified signature0c8e242 -
Upload model-00133-of-000163.safetensors with huggingface_hub
Verified signaturea3c9bf5 -
Upload model-00132-of-000163.safetensors with huggingface_hub
Verified signature482216b -
Upload model-00129-of-000163.safetensors with huggingface_hub
Verified signaturec03e4ef -
Upload model-00126-of-000163.safetensors with huggingface_hub
Verified signature35ace34 -
Upload model-00125-of-000163.safetensors with huggingface_hub
Verified signatureacc12bc -
Upload model-00124-of-000163.safetensors with huggingface_hub
Verified signaturef3da6da -
Upload model-00122-of-000163.safetensors with huggingface_hub
Verified signaturee43edf7 -
Upload model-00119-of-000163.safetensors with huggingface_hub
Verified signature264c1bc -
Upload model-00113-of-000163.safetensors with huggingface_hub
Verified signature6383c12 -
Upload model-00109-of-000163.safetensors with huggingface_hub
Verified signaturef08f191 -
Upload model-00106-of-000163.safetensors with huggingface_hub
Verified signature1809cfd -
Upload model-00102-of-000163.safetensors with huggingface_hub
Verified signaturefe3ba68 -
Upload model-00099-of-000163.safetensors with huggingface_hub
Verified signatured41ca0a -
Upload model-00072-of-000163.safetensors with huggingface_hub
Verified signaturef032e85 -
Upload model-00066-of-000163.safetensors with huggingface_hub
Verified signatureaea1830 -
Upload model-00062-of-000163.safetensors with huggingface_hub
Verified signature69829e3 -
Upload model-00061-of-000163.safetensors with huggingface_hub
Verified signaturee6a268c -
Upload model-00059-of-000163.safetensors with huggingface_hub
Verified signaturee5c3043 -
Upload model-00058-of-000163.safetensors with huggingface_hub
Verified signature2ac1d26 -
Upload model-00054-of-000163.safetensors with huggingface_hub
Verified signaturea600bb3 -
Upload model-00053-of-000163.safetensors with huggingface_hub
Verified signature6fd0f1e -
Upload model-00048-of-000163.safetensors with huggingface_hub
Verified signature82e742f -
Upload model-00040-of-000163.safetensors with huggingface_hub
Verified signature21b1a5d -
Upload model-00039-of-000163.safetensors with huggingface_hub
Verified signaturef2327a4 -
Upload model-00034-of-000163.safetensors with huggingface_hub
Verified signaturea5d19c4 -
Upload model-00032-of-000163.safetensors with huggingface_hub
Verified signaturee6f131e -
Upload model-00031-of-000163.safetensors with huggingface_hub
Verified signatured2ef08b -
Upload model-00030-of-000163.safetensors with huggingface_hub
Verified signature36cf6d1 -
Upload model-00025-of-000163.safetensors with huggingface_hub
Verified signature3fd7ffd -
Upload model-00024-of-000163.safetensors with huggingface_hub
Verified signaturef4cdd97 -
Upload model-00012-of-000163.safetensors with huggingface_hub
Verified signature9ae4c9b -
Upload model-00008-of-000163.safetensors with huggingface_hub
Verified signatureefd6231 -
Upload model-00007-of-000163.safetensors with huggingface_hub
Verified signaturea4d83c0 -
Upload model-00001-of-000163.safetensors with huggingface_hub
Verified signature9a29e43 -
Upload folder using huggingface_hub
Verified signature0b41b94 -
Upload model-00084-of-000163.safetensors with huggingface_hub
Verified signature7054196 -
Upload model-00100-of-000163.safetensors with huggingface_hub
Verified signature9f19728 -
Upload model-00163-of-000163.safetensors with huggingface_hub
Verified signaturedc148c4