Text Generation
Transformers
Safetensors
gemma4
image-text-to-text
darwin-v6
generation-2
evolutionary-merge
mri-guided
dare-ties
reasoning
thinking
proto-agi
vidraft
conversational
Eval Results (legacy)
Eval Results
Instructions to use FINAL-Bench/Darwin-4B-David with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FINAL-Bench/Darwin-4B-David with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FINAL-Bench/Darwin-4B-David") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("FINAL-Bench/Darwin-4B-David") model = AutoModelForMultimodalLM.from_pretrained("FINAL-Bench/Darwin-4B-David", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FINAL-Bench/Darwin-4B-David with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FINAL-Bench/Darwin-4B-David" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FINAL-Bench/Darwin-4B-David", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FINAL-Bench/Darwin-4B-David
- SGLang
How to use FINAL-Bench/Darwin-4B-David 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 "FINAL-Bench/Darwin-4B-David" \ --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": "FINAL-Bench/Darwin-4B-David", "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 "FINAL-Bench/Darwin-4B-David" \ --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": "FINAL-Bench/Darwin-4B-David", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FINAL-Bench/Darwin-4B-David with Docker Model Runner:
docker model run hf.co/FINAL-Bench/Darwin-4B-David
Invalid JSON:Unexpected token 'N', ..."ratio_b": NaN,
""... is not valid JSON
| { | |
| "version": "darwin_v6", | |
| "model_a": "FINAL-Bench/Darwin-4B-Opus", | |
| "model_b": "DavidAU/gemma-4-E4B-it-The-DECKARD-Expresso-Universe-HERETIC-UNCENSORED-Thinking", | |
| "scan_time_a": 54.22784948348999, | |
| "scan_time_b": 42.40485382080078, | |
| "prescription": { | |
| "total_tensors": 2130, | |
| "avg_ratio_b": NaN, | |
| "avg_attn_ratio": NaN, | |
| "avg_ffn_ratio": NaN, | |
| "avg_embed_ratio": 0.4999999999999489, | |
| "transplant_a_count": 0, | |
| "transplant_b_count": 0, | |
| "blended_count": 1160 | |
| }, | |
| "recommended_genome": { | |
| "global_ratio": NaN, | |
| "attn_ratio": NaN, | |
| "ffn_ratio": NaN, | |
| "embed_ratio": 0.4999999999999489, | |
| "block_ratios": [ | |
| NaN, | |
| NaN, | |
| NaN, | |
| NaN, | |
| NaN, | |
| NaN, | |
| NaN, | |
| NaN | |
| ], | |
| "mri_trust": 0.7 | |
| }, | |
| "evolution": { | |
| "best_score": 0.8412456388983244, | |
| "best_genome": [ | |
| 0.5023999256777149, | |
| 0.06251130576906211, | |
| 0.9059283807057942, | |
| 0.42074310118752567, | |
| 0.9874541342638986, | |
| 0.9037828908536263, | |
| 0.8219076186581621, | |
| 0.5589870798515434, | |
| 0.6906813428968721, | |
| 0.3675511731913778, | |
| 0.32144495666365286, | |
| 0.5249739988376431, | |
| 0.6208186505355839, | |
| 0.6994965066450468, | |
| 0.9357338497347673, | |
| 0.3997637868350029 | |
| ], | |
| "elapsed_sec": 2536.9613382816315, | |
| "merge_report": { | |
| "total": 0, | |
| "transplant_a": 0, | |
| "transplant_b": 0, | |
| "blended": 0, | |
| "method": "slerp", | |
| "genome_hash": "663333c9" | |
| } | |
| }, | |
| "health": { | |
| "status": "healthy", | |
| "summary": "failed: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/ray_temp/ginipick/darwin_merge_cache/merged_42bf4a71'. Use `repo_type` argument if needed.", | |
| "issue_count": 0 | |
| } | |
| } |