Granite Code 20B
granite-code-20bIBM Granite 20B Code Instruct. Larger Granite code model balancing quality and inference cost for enterprise CI/CD code-review automation.
- السعر · 1 مليون إدخال/إخراج
- 0.12 US$ / 0.60 US$
- السياق
- 8,192 رمز
- الحد الأقصى للإخراج
- 8,192 رمز
- Input → output
- نص → نص
- مطور
- IBM
- تم التحديث
- 24 سبتمبر 2026
Playground
جرّب Granite Code 20B
الإدخال والإخراج
هذا التشغيل
بحد أقصى 0.0025 US$ · 0.25 رصيد محجوز
يتم فواتير الرموز المستخدمة فعلياً؛ يتم استرجاع الجزء غير المستخدم من الحجز.
جديد هنا؟
10 رصيد مجاني (0.10 US$) عند التسجيل باستخدام Google
قابل للاستخدام 24 ساعة بعد التسجيل، حتى 5 تشغيل يومياً وبحد أقصى 2 رصيد لكل تشغيل. طرق تسجيل الدخول الأخرى تبدأ بدون رصيد. كافٍ لـ 40 تشغيلًا لهذا النموذج.
Examples
Prompt
Could you please explain what APR means?
Response
APR stands for Annual Percentage Rate. It is a figure that represents the annual cost of borrowing, including fees and interest. It is used to help consumers compare the costs of different loans and credit products. The higher the APR, the more expensive the loan is.
Settings
system_prompt: You are an expert in finance that knows many concepts related to loans and credit.
Prompt
Now, please explain APR meaning with a simple example, so that even a 5 years old kid can understand you.
Response
Sure, I'd be happy to explain it to a 5-year-old! Let's say you want to buy a toy that costs $10. You ask your parents if you can borrow the money, and they agree. You sign a loan agreement promising to pay them back the $10 plus some extra money, called interest. The interest is calculated as a percentage of the loan amount, and it's called the Annual Percentage Rate, or APR for short. For example, let's say the APR is 5%. This means that you have to pay an extra $0.50 for each dollar you borrow. So, if you borrow $10, you have to pay $10 + ($10 * 0.05) = $10.50 back. The APR is important because it helps you understand how much extra money you'll have to pay back. The higher the APR, the more interest you'll have to pay. So, you want to make sure the APR is as low as possible when you take a loan.
Settings
system_prompt: You are an expert in finance that knows many concepts related to loans and credit.
حول Granite Code 20B
Granite Code 20B هو نموذج من IBM في فئة الكود. على Railwail، يكلف Granite Code 20B 0.12 US$ لكل مليون رمز إدخال و 0.60 US$ لكل مليون رمز إخراج. نافذة السياق تحتوي على 8,192 رموز، والرد الواحد يمكن أن يصل إلى 8,192 رموز.
التسعير
| إدخال | 0.12 US$ / 1M رمز |
|---|---|
| إخراج | 0.60 US$ / 1M رمز |
- يتم الفرز بناءً على الرموز التي تستخدمها كل طلب فعلياً.
- 1 رصيد = 0.01 US$
حاسبة التكلفة
حاسبة الأسعار
الإجمالي
0.05 US$
5 رصيد
لكل طلب
0.0005 US$ · 0.05 رصيد
يتم تقريب كل طلب إلى 0.01 رصيد.
API
لا يوجد مثال API موثق
API العام يمرر صيغة إدخال مختلفة عما يحتاجه هذا النموذج. استخدم ساحة الاختبار أعلاه.
المواصفات
- معرّف النموذج
granite-code-20b- مطور
- IBM
- الفئة
- الكود
- الإدخال
- نص
- الإخراج
- نص
- نافذة السياق
- 8,192 رمز
- الحد الأقصى للإخراج
- 8,192 رمز
- الفواتير
- حسب الاستخدام (الرموز أو وقت GPU)
- تم تحديث إدخال الكتالوج
- 24 سبتمبر 2026
الوسوم
- replicate
- code-generation
- ibm
- granite
- open-weights
- apache-2
حالات الاستخدام
الأسئلة الشائعة
ما هو Granite Code 20B؟
Granite Code 20B هو نموذج من IBM في فئة الكود.
كم تكلفة Granite Code 20B على Railwail؟
على Railwail، يكلف Granite Code 20B 0.12 US$ لكل مليون رمز إدخال و 0.60 US$ لكل مليون رمز إخراج. يتم فرض رسوم عليك مقابل ما تستخدمه كل طلب فعلياً. الاستخدام يُدفع من أرصدة مدفوعة مقدماً؛ 1 رصيد يساوي 0.01 US$.
ما حجم نافذة السياق في Granite Code 20B؟
نافذة السياق في Granite Code 20B تحتوي على 8,192 رموز. الرد الواحد يمكن أن يصل إلى 8,192 رموز.
ما سرعة Granite Code 20B؟
لا توجد عمليات تشغيل مقاسة كافية لـ Granite Code 20B على Railwail حتى الآن لتحديد وقت التشغيل. يعتمد على الإدخال والإعدادات والحمل لدى المزود.
هل Granite Code 20B أفضل من Code Llama 13B Instruct؟
هذا يعتمد على المهمة. Granite Code 20B (IBM) و Code Llama 13B Instruct (Meta) كلاهما نموذج في فئة الكود. تعرض صفحة المقارنة أسعارهما والمواصفات جنباً إلى جنب.
قارن Granite Code 20B و Code Llama 13B Instructنماذج قابلة للمقارنة
الكل في هذه الفئةIBM Granite 8B Code Instruct. Trained on permissively-licensed code, strong on multi-language code completion and instruction-following.
Meta's 13B Code Llama tuned for instruction following. A faster mid-size option for code generation and completion, supporting infilling for inserting code at a cursor position. Served on Replicate per call.
≈ 0.0065 US$/تشغيل
قارن Granite Code 20B مع Code Llama 13B InstructMeta's 34B Code Llama tuned for instruction following. A balance of size and quality for code generation, completion, and explanation, with strong coverage of Python, JavaScript, and other common languages. Runs on Replicate per call.
≈ 0.0408 US$/تشغيل
قارن Granite Code 20B مع Code Llama 34B Instruct
جميع النماذج عبر API واحدة
مفتاح API واحد لكل نموذج على Railwail. يتم احتساب الاستخدام من الأرصدة المدفوعة مقدماً، 1 رصيد = 0.01 US$.