File size: 14,802 Bytes
eb39360 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba c392842 68c99ba 775aad5 68c99ba eb39360 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | ---
license: apache-2.0
language:
- en
base_model:
- unsloth/gemma-2-9b-bnb-4bit
pipeline_tag: question-answering
tags:
- chameleon
- shop
- esono
---
# Chameleon-Code_Explation_Gemma29b-v2
Chameleon-Code_Explation_Gemma29b-v2 is a fine-tuned version of the Unsloth Gemma model, optimized for efficient inference using 4-bit quantization. This model has been trained to explain various classes within the Chameleon CMS system, which is a combined shop software and content management system.
## Table of Contents
- [Model Overview](#model-overview)
- [Getting Started](#getting-started)
- [Available Classes](#available-classes)
- [Training Details](#training-details)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Contact](#contact)
## Model Overview
Chameleon-Code_Explation_Gemma29b-v2 is a transformer-based language model fine-tuned to understand and explain the structure and components of the Chameleon CMS system. The model can provide non-technical descriptions of CMS components using efficient 4-bit quantization to minimize resource requirements.
- **Base Model:** Google Gemma 2 9B
- **Library Used:** PEFT
- **Language:** English
- **License:** Apache 2.0
- **Developer:** kzorluoglu
- **Model Source:** [Unsloth GitHub](https://github.com/unslothai/unsloth)
## Getting Started
To use the model, you can start by installing the necessary dependencies and downloading the model using the Hugging Face Transformers library.
### Installation
Install the `transformers` library:
```sh
pip install transformers
```
### Usage
Here is an example code snippet to get started:
```python
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("kzorluoglu/Chameleon-Code_Explation_Gemma29b-v2")
tokenizer = AutoTokenizer.from_pretrained("kzorluoglu/Chameleon-Code_Explation_Gemma29b-v2")
print("Chatbot is ready!")
print("Type 'exit' to end the chat.")
print("Ask like this for a good answer:")
print("Explain the XYZ class. I don't want to see code, I want only the explanation.")
while True:
question = input("You: ")
if question.lower() == 'exit':
print("Ending the chat. Goodbye!")
break
instruction = f"{question}"
inputs = tokenizer([instruction], return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=256, use_cache=True)
generated_text = tokenizer.batch_decode(outputs, skip_special_tokens=True)
print(f"AI: {generated_text[0]}")
```
## Available Classes
The model has been trained to provide explanations for a wide range of classes in the Chameleon CMS system, including but not limited to:
* MTFeedbackErrors
* AmazonDataConverter
* AmazonPaymentConfigFactory
* AmazonReferenceIdManager
* WebServerExample
* OffAmazonPaymentsNotifications_Samples_NotificationSample
* OffAmazonPaymentsNotifications_Samples_IpnLogFile
* SnsMessageValidator
* IpnNotificationParser
* XmlNotificationParser
* Message
* SnsMessageParser
* OffAmazonPayments_Model
* OffAmazonPaymentsService_Model
* OffAmazonPaymentsService_Regions
* OffAmazonPaymentsService_RegionSpecificProperties
* OffAmazonPaymentsService_Environments
* OffAmazonPaymentsService_MerchantValues
* OffAmazonPaymentsService_Model_ResponseHeaderMetadata
* CancellationExample
* CLIExample
* SimpleCheckoutExample
* AddressConsentSample
* SplitShipmentsCheckoutExample
* RefundExample
* AutomaticPaymentsSimpleCheckoutExample
* ShippingAndTaxCostHelper
* CountryRates
* AmazonPaymentFixturesFactory
* ConfigValidator
* AmazonPaymentIdMapping
* TPkgShopOrderStatusManagerEndPoint
* PkgShopWishlistMailHistory
* PkgShopWishlistArticle
* PkgShopWishlistOrderItem
* PkgShopWishlist
* PkgImageHotspotItemMarker
* PkgImageHotspot
* PkgImageHotspotItemSpot
* PkgImageHotspotItem
* UpdateProductStockListener
* ShopCurrencyEvents
* TPkgShopPaymentIPNManager
* TPkgShopPaymentIPNRequest
* TPkgShopPaymentIPN_TransactionDetails
* PkgShopPaymentIpnMessage
* PkgShopPaymentIpnTrigger
* PkgShopPaymentIpnStatus
* PkgShopPaymentIpnMessageTrigger
* PkgShopAffiliate
* PkgShopAffiliateParameter
* ShopEvents
* TShopCategoryTree
* MTShopArticleListResponse
* TShopBreadcrumbItem
* TShopBasketArticleCustomDataValidationError
* TdbShopArticle
* ShopPaymentHandlerMock
* BasketVariableReplacer
* UpdateProductStatisticsListener
* UpdateVariantParentStockListener
* UpdateProductStockListener
* OrderPaymentInfo
* ShopPaymentConfigRawValue
* ShopSystemPage
* PkgShopArticlePreorder
* Shop
* ShopShippingGroupHandler
* ShopShippingGroup
* ShopWrappingCard
* ShopCategoryTab
* PkgShopListfilterItem
* PkgShopStatisticGroup
* ShopVat
* PkgShopFooterCategory
* PkgShopListfilterModuleConfig
* ShopSuggestArticleLog
* ShopBankAccount
* ShopCategory
* ShopDiscount
* PkgShopPrimaryNavi
* ShopShippingType
* ShopWrapping
* PkgShopListfilterItemType
* PkgShopCurrency
* PkgShopListfilter
* ShopUserNoticeList
* ShopSystemInfoModuleConfig
* PkgShopArticleReviewModuleShopArticleReviewConfiguration
* ShopSystemInfo
* ShopPaymentHandlerGroup
* ShopPaymentMethod
* ShopPaymentHandlerGroupConfig
* ShopPaymentHandler
* ShopPaymentHandlerParameter
* ShopArticleCatalogConfDefaultOrder
* ShopStockMessageTrigger
* ShopVariantType
* ShopArticleImageSize
* ShopAttribute
* ShopBundleArticle
* ShopArticleDocumentType
* ShopArticleMarker
* ShopArticle
* ShopArticleImage
* ShopArticleReview
* ShopArticleCatalogConf
* ShopArticleContributor
* ShopArticleDocument
* ShopVariantSet
* ShopStockMessage
* ShopArticleType
* ShopVariantDisplayHandler
* ShopUnitOfMeasurement
* ShopArticleStats
* ShopAttributeValue
* ShopVariantTypeHandler
* ShopContributorType
* ShopContributor
* ShopVariantTypeValue
* ShopManufacturerModuleConf
* ShopArticleStock
* ShopArticlePreviewImage
* ShopManufacturer
* ShopArticleGroup
* ShopVoucherUse
* ShopVoucherSeriesSponsor
* ShopUserPurchasedVoucher
* ShopVoucherSeries
* ShopVoucher
* ShopModuleArticleListArticle
* ShopModuleArticlelistOrderby
* ShopModuleArticleList
* ShopModuleArticleListFilter
* ShopOrderBasket
* ShopOrder
* ShopOrderStatusCode
* ShopOrderExportLog
* ShopOrderStatusItem
* ShopOrderStatus
* ShopOrderVat
* ShopOrderShippingGroupParameter
* ShopOrderItem
* ShopOrderStep
* ShopOrderBundleArticle
* ShopOrderPaymentMethodParameter
* ShopOrderDiscount
* SearchSuggestController
* XmlStreamer
* TShopAuskunftAPI
* PkgShopRatingServiceRating
* PkgShopRatingServiceTeaserCnf
* PkgShopRatingServiceWidgetConfig
* PkgShopRatingServiceHistory
* PkgShopRatingService
* TShopModuleArticleListFilterAutoParent
* TdbShopModuleArticleListFilter
* SearchResultTriggerCmsObserverListener
* SearchResultLoggerListener
* ShopSearchFieldWeight
* ShopSearchCloudWord
* ShopSearchCache
* ShopSearchQuery
* ShopSearchCacheItem
* ShopSearchIndexer
* ShopSearchKeywordArticle
* ShopSearchLog
* ShopSearchIgnoreWord
* AuthorDisplayConstants
* Slider
* Select
* DbAdapter
* TPkgShopPaymentTransactionItemDataEndPoint
* TPkgShopPaymentTransactionManagerEndPoint
* TPkgShopPaymentTransactionContextEndPoint
* PkgShopPaymentTransactionPosition
* PkgShopPaymentTransactionType
* PkgShopPaymentTransaction
* AddParametersToUrlService
* CacheUtil
* TPkgCmsEventManager
* DeleteMediaConnectionsListener
* ViewRenderer
* TPkgViewRendererMapper_ListHandlerData
* TPkgViewRendererLessCompiler
* TPkgViewRendererSnippetResourceCollectorEndPoint
* TPkgViewRendererSnippetDummyData
* TPkgViewRendererSnippetGalleryItem
* MapperVirtualSourceObject
* User
* Article
* GenerateCssController
* CmsCounter
* UpdateCounterMigrator
* UpdateCounterVersionMigrator
* MigrationConfigGenerator
* MigrateCountersListener
* TPkgCmsStringUtilities_HTML
* TPkgCmsStringUtilities_ReadConfig
* TPkgCmsStringUtilities_CleanPHPCode
* TPkgCmsStringUtilities_iOSMailURLEncoder
* TPkgCmsStringUtilities_PathUtils
* SearchResultTriggerCmsObserverListener
* CategoryTriggerCmsObserverListener
* AddCookieConsentIncludesListener
* TPkgCmsResultCacheManager
* TPkgCmsActionPluginManager
* AbstractPkgActionPlugin
* TPkgCmsVirtualClassManager
* TPkgCmsCoreSendToHost
* TPkgCoreUtility_Network
* TPkgCmsCoreLayoutPluginManager
* TPkgCmsCoreParameterContainerParameterDefinition
* AbstractPkgCmsCoreParameterContainer
* ExtranetEvents
* ExtranetUserConstants
* RefreshAuthenticityTokenListener
* RehashPasswordListener
* DelayFailedLoginAttemptListener
* LoginByTokenController
* ServiceLocator
* CoreEvents
* CronJobScheduleDataModel
* chameleon
* TableConfigurationDataModel
* CmsMasterPagdef
* DownloadLinkDataModel
* PagePath
* File
* Error
* UploaderController
* UploaderParametersDataModel
* UploadedFileDataModel
* StripVirtualFieldsFromQuery
* CronJobThatDoesNotExtendTCMSCronJob
* HtmlHelper
* TGlobalBase
* TModuleLoader
* TModelBase
* MTCustomListCoreConfig
* TTemplateTools
* TCMRenderMediaTreeSelectBox
* TCMSRegistry
* TCMSSmartURL
* TCMSTidyHTMLCleaner
* TCMSLockManager
* TCMSURLHistory
* TCMSRssHandler
* TCMSRender
* TPkgDependencyInjection
* TCMSLogChange
* TCMSViewPortManager
* TCMSRenderSeoPattern
* TCMSPageDefinitionFile
* TCMSRenderDocumentTreeSelectBox
* FalseValueCacheEntry
* TCMSMemcache
* TCMSTreeWidget
* TCMSTableToClass_MockRecord
* TCMSTableToClass
* TCacheManagerRuntimeCache
* TViewParser
* TCMSSmartURLData
* TCMSSmartURLHandler
* TCMSParameterMapperEndPoint
* TCMSMenuItem
* TCMSSpellcheck
* MTFeedbackErrorsCore
* TCMSErrorHandler
* MySqlLegacySupport
* TCMSFile
* TDbChangeLogManagerForModules
* TCMSTableEditorManager
* TCMSTableEditorEndPoint
* TCMSTableEditorMenuItem
* TCMSMessageManager
* TCMSImageEndpoint
* THTMLTable
* THTMLTableColumn
* HtmlParser
* TGoogleMapMarker
* TGoogleOverviewMap
* TGoogleMapEndPoint
* TGoogleMapIcon
* TCMSBreadcrumbNavi
* TCMSBreadcrumbNaviItem
* TGroupTableField
* TGroupTable
* TGroupTableStyle
* TPkgRunFrontendActionStatus
* TCMSGroupedStatistics
* TCMSGroupedStatisticsGroup
* TCCustomNavigation
* SQLParser
* SQLParenthesesParser
* imageMagick
* antiSpam
* TPkgCmsSessionWakeUpService
* TCMSListManagerEndPoint
* TCMSUserInput
* TCMSUserInputFilter_BaseClass
* TCMSUpdateManager
* TTools
* CheckPortalDomainListener
* CaseInsensitivePortalExceptionListener
* TemplateEngineAccessListener
* AddAntispamIncludesListener
* BackendBreadcrumbListener
* AddControllerIncludesListener
* CleanupBreadcrumbAfterDeleteListener
* RedirectToSecurePageListener
* ClearRoutingCacheListener
* InitializeRequestListener
* ReleaseOldLocksOnLoginListener
* AddGlobalHeadIncludesListener
* MigrateSessionListener
* AddModuleIncludesListener
* ChangeChameleonObjectsLocaleListener
* AddBackendToasterMessageListener
* NoCacheForSecurePageListener
* RehashBackendUserPasswordListener
* AllowEmbeddingForDifferentDomainListener
* AddJqueryIncludeListener
* BackendTreeNodeFactory
* RequestInitializer
* FieldTranslationUtil
* UrlUtil
* MltFieldUtil
* UrlNormalizationUtil
* AbstractDatabaseAccessLayer
* TranslationConstants
* JsTranslationController
* ModuleIconMigrator
* MainMenuMigrator
* IconMapping
* MenuItem
* MenuCategory
* ChameleonControllerEvents
* ImageNotFoundController
* BackendAccessCheck
* CsrfTokenManagerFactory
* Migrator
* ComposerData
* ComposerJsonModifier
* AbstractPkgCmsNavigationNode
* JavaScriptMinifyEventListener
* ImageCropPresetDataModel
* ImageCropDataModel
* ImageDataModel
* CmsMediaDataModel
* TPkgTrackObjectViews
* TrackViewsListener
* TCMSTextFieldEndPoint
* TdbCmsLanguage
* RequestListener
* AutoClassLoader
* MappingDataModel
* DataModelParts
* name
* MediaItemChainUsageFinder
* SortColumnCollection
* MediaItemUsageChainDeleteService
* MediaManagerExtensionCollection
* MediaManagerListResult
* MediaManagerListRequest
* AccessRightsModel
* MediaManagerListState
* MediaTreeDataModel
* MediaItemUsageDataModel
* MediaTreeNodeDataModel
* MediaItemDataModel
* JavascriptPluginRenderedContent
* JavascriptPluginMessage
* JavascriptPluginConfigurationState
* JavascriptPluginConfigurationUrls
* JavascriptPluginConfiguration
* MediaTreeNodeJsonObject
* TCMSChangeLogArchiver
* TCMSChangeLogFormatter
* SnippetChainModifier
* MigrationRecorderStateHandler
* MigrationRecorder
* QueryWriter
* DataModelConverter
* TPkgCsv2SqlManager
* NewsletterPostProcessorListener
* NewsletterUserDataModel
* PostUpdateVersionCheck
* ChameleonVersion
* MatchLevel
* InitialBackendUserCreator
* TPkgCmsFileManager_Utilities
* RedirectOnPendingUpdatesEventListener
* SecurityHelperAccess
* CmsUserRoleConstants
* CmsPermissionAttributeConstants
* CmsUserSSOModel
* TPkgSnippetRenderer_PregCallbackHelper
* TPkgSnippetRenderer_ResourceHelper
* TPkgSnippetRendererFilter
* AtomicLock
* ViewRendererPostRenderListener
* LogChangeDataModel
* MigrationDataModel
* MigrationQueryData
* MigrationRecorderConstants
* QueryConstants
* DatabaseMigrationConstants
* MigrationDataModelReducer
To get the explanation for a specific class, use the prompt format:
```text
Explain the XYZ class. I don't want to see code, I want only the explanation.
```
## Training Details
### Training Data
The model was trained on data from the following sources:
- [Chameleon Shop System](https://github.com/chameleon-system/chameleon-shop)
- [Chameleon System](https://github.com/chameleon-system/chameleon-system)
- [Chameleon Base](https://github.com/chameleon-system/chameleon-base)
### Training Procedure
- **Training Type:** Mixed precision (fp16) with 4-bit quantization
- **Prompt Format:** The model is trained to respond to prompts such as:
```text
Explain the X class. I don't want to see code, I want only the explanation.
```
## Evaluation
The model was evaluated using specific Chameleon CMS classes to ensure accurate and useful explanations.
- **Metrics Used:**
- **Perplexity**: Evaluated for language modeling capabilities.
- **Accuracy**: Assessed based on how well the model explains Chameleon CMS components.
### Results
The model demonstrated good accuracy in explaining the components of Chameleon CMS, providing clear and detailed answers.
## Environmental Impact
- **Hardware Type:** Tesla T4 GPU
- **Training Hours:** 10 hours
- **Cloud Provider:** Google Cloud (US Central)
- **Estimated Carbon Emission:** 5 kg CO2eq
## Technical Specifications
- **Model Architecture:** Transformer-based model with 4-bit quantization.
- **Compute Infrastructure:**
- Hardware: Tesla T4 GPU
- Software: PyTorch 2.4.1, CUDA 12.1
## Contact
For any questions or issues, you can reach out to:
- **Email:** [hello@d8devs.com](mailto:hello@d8devs.com)
## License
The model is available under the Apache 2.0 License.
## Citation
If you use this model, please cite it as follows:
```bibtex
@misc{kzorluoglu2024chameleon,
author = {kzorluoglu},
title = {Chameleon-Code_Explation_Gemma29b-v2},
year = {2024},
url = {https://github.com/kzorluoglu},
note = {Apache 2.0 License}
}
``` |