Buckets:
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .gitattributes | 1.52 kB xet | 818ba6de | |
| README.md | 1.15 kB xet | 56cb1a9f | |
| adapter_config.json | 577 Bytes xet | c354d954 | |
| adapter_model.safetensors | 13.6 MB xet | 83db5658 |
Description: Coding tasks in multiple languages
Original dataset: https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K
---
Try querying this adapter for free in Lora Land at https://predibase.com/lora-land!
The adapter_category is STEM and the name is Code Generation (magicoder)
---
Sample input: Below is a programming problem, paired with a language in which the solution should be written. Write a solution in the provided that appropriately solves the programming problem.\n\n### Problem:
def strlen(string: str) -> int:
""" Return length of given string
>>> strlen('')
0
>>> strlen('abc')
3
"""
\n\n### Language: python\n\n### Solution:
---
Sample output: python def strlen(string: str) -> int: return len(string)
---
Try using this adapter yourself!
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "mistralai/Mistral-7B-v0.1"
peft_model_id = "predibase/magicoder"
model = AutoModelForCausalLM.from_pretrained(model_id)
model.load_adapter(peft_model_id)
- Total size
- 13.7 MB
- Files
- 4
- Last updated
- Sep 5
- Pre-warmed CDN
- US EU US EU