Instructions to use DFveloper/AIKAR-1.2-Pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DFveloper/AIKAR-1.2-Pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="DFveloper/AIKAR-1.2-Pro") 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("DFveloper/AIKAR-1.2-Pro") model = AutoModelForMultimodalLM.from_pretrained("DFveloper/AIKAR-1.2-Pro", 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 DFveloper/AIKAR-1.2-Pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DFveloper/AIKAR-1.2-Pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DFveloper/AIKAR-1.2-Pro", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/DFveloper/AIKAR-1.2-Pro
- SGLang
How to use DFveloper/AIKAR-1.2-Pro 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 "DFveloper/AIKAR-1.2-Pro" \ --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": "DFveloper/AIKAR-1.2-Pro", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "DFveloper/AIKAR-1.2-Pro" \ --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": "DFveloper/AIKAR-1.2-Pro", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use DFveloper/AIKAR-1.2-Pro with Docker Model Runner:
docker model run hf.co/DFveloper/AIKAR-1.2-Pro
Update README.md
Browse files
README.md
CHANGED
|
@@ -57,17 +57,6 @@ outputs = model.generate(**inputs, max_new_tokens=128)
|
|
| 57 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 58 |
```
|
| 59 |
|
| 60 |
-
## 📊 Benchmark (Estimated)
|
| 61 |
-
|
| 62 |
-
| Benchmark | AIKAR 1.1 | **AIKAR 1.2 Pro** | Improvement |
|
| 63 |
-
| :--- | :---: | :---: | :---: |
|
| 64 |
-
| MMLU | 6X.X | **7X.X** | ↑ 12% |
|
| 65 |
-
| GSM8K | 5X.X | **6X.X** | ↑ 15% |
|
| 66 |
-
| HumanEval | 4X.X | **5X.X** | ↑ 18% |
|
| 67 |
-
| Ko-HellaSwag | 5X.X | **6X.X** | ↑ 20% |
|
| 68 |
-
|
| 69 |
-
*Note: 위 수치는 내부 테스트 기준이며, 공식 벤치마크 결과 발표 시 업데이트될 예정입니다.*
|
| 70 |
-
|
| 71 |
## 🤝 Contributing
|
| 72 |
|
| 73 |
AIKAR 1.2 Pro의 성능 개선이나 버그 제보는 [LOOP GitHub Repository](https://github.com/LOOP-dev)를 통해 언제든 환영합니다. 사용자의 피드백은 차세대 모델 개발의 핵심 자산이 됩니다.
|
|
|
|
| 57 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 58 |
```
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
## 🤝 Contributing
|
| 61 |
|
| 62 |
AIKAR 1.2 Pro의 성능 개선이나 버그 제보는 [LOOP GitHub Repository](https://github.com/LOOP-dev)를 통해 언제든 환영합니다. 사용자의 피드백은 차세대 모델 개발의 핵심 자산이 됩니다.
|