wlmbrown commited on
Commit
97ebda3
·
1 Parent(s): 84e2146

cosmetic changes

Browse files
Files changed (2) hide show
  1. project_cc.yaml +19 -17
  2. utils.py +2 -2
project_cc.yaml CHANGED
@@ -139,6 +139,10 @@ gpai_model_systematic_risk:
139
  # Information related to the Act's exceptions for scientific research, open-source AI, and more
140
 
141
  excepted:
 
 
 
 
142
  scientific:
143
  article: 'Art. 2(6)'
144
  verbose: 'AI project is or was specifically developed and put into service for the sole purpose of scientific research and development'
@@ -252,11 +256,7 @@ risk_management_system:
252
  value: !!bool false
253
  vulnerable_groups:
254
  article: 'Art. 9(9)'
255
- verbose: 'Adverse impacts in the view of intended purpose the high-risk AI system on individuals under 18 and other vulnerable groups have been considered'
256
- value: !!bool true
257
- integration_with_other_laws:
258
- article: 'Art. 9(10)'
259
- description: 'For providers subject to other Union law requirements, risk management procedures may be integrated or combined with those established under such law.'
260
  value: !!bool true
261
 
262
  # Information related to the risk management system requirements for high-risk AI systems (Article 11)
@@ -292,7 +292,7 @@ technical_documentation:
292
  value: !!bool false
293
  external_features:
294
  article: 'Art. 11(1); Annex IV(1)(f)'
295
- verbose: 'Technical Documentation includes a general description of the AI project that includes, where the AI system is a component of products, photographs or illustrations showing external features, the marking and internal layout of those products'
296
  value: !!bool false
297
  user_interface:
298
  article: 'Art. 11(1); Annex IV(1)(g)'
@@ -583,7 +583,7 @@ gpai_model_obligations:
583
  documentation:
584
  intended_uses:
585
  article: 'Art. 53(1)(a); Annex XI(1)(1)(a)'
586
- verbose: 'The provider has drawn up and will keep up-to-date technical documentation of the model that include a general description of the model includes a description of the tasks that the model is intended to perform and the type and nature of AI systems in which it can be integrated'
587
  value: !!bool false
588
  accepable_use_policies:
589
  article: 'Art. 53(1)(a); Annex XI(1)(1)(b)'
@@ -607,7 +607,7 @@ gpai_model_obligations:
607
  value: !!bool false
608
  technical_means:
609
  article: 'Art. 53(1)(a); Annex XI(1)(2)(a)'
610
- verbose: 'The provider has drawn up and will keep up-to-date technical documentation of the model that include a detailed description of the model that includes the technical means (e.g. instructions of use, infrastructure, tools) required for the AI project to be integrated in AI systems'
611
  value: !!bool false
612
  design_specs:
613
  article: 'Art. 53(1)(a); Annex XI(1)(2)(b)'
@@ -632,39 +632,39 @@ gpai_model_obligations:
632
  provider_documentation:
633
  general:
634
  article:
635
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulation'
636
  value: !!bool false
637
  tasks:
638
  article: 'ANNEX XII(1)(a)'
639
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the tasks that the model is intended to perform and the type and nature of AI systems into which it can be integrated;'
640
  value: !!bool false
641
  acceptable_use:
642
  article: 'ANNEX XII(1)(b)'
643
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the acceptable use policies applicable;'
644
  value: !!bool false
645
  release_date:
646
  article: 'ANNEX XII(1)(c)'
647
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the date of release and methods of distribution;'
648
  value: !!bool false
649
  hardware:
650
  article: 'ANNEX XII(1)(d)'
651
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including how the model interacts, or can be used to interact, with hardware or software that is not part of the model itself, where applicable;'
652
  value: !!bool false
653
  versions:
654
  article: 'ANNEX XII(1)(e)'
655
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the versions of relevant software related to the use of the general-purpose AI model, where applicable'
656
  value: !!bool false
657
  architecture:
658
  article: 'ANNEX XII(1)(f)'
659
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the architecture and number of parameters;'
660
  value: !!bool false
661
  modality:
662
  article: 'ANNEX XII(1)(g)'
663
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the modality (e.g. text, image) and format of inputs and outputs;'
664
  value: !!bool false
665
  license:
666
  article: 'ANNEX XII(1)(h)'
667
- verbose: 'Provider has draw up and will keep up-to-date and make available to providers of AI systems who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the licence for the model.;'
668
  value: !!bool false
669
  other:
670
  policy:
@@ -754,6 +754,8 @@ additional_provider_obligations:
754
 
755
  # Information related to the additional transparency requirements in Article 50, if applicable
756
 
 
 
757
  transparency_related:
758
  direct_user_interaction:
759
  article: 'Art. 50'
 
139
  # Information related to the Act's exceptions for scientific research, open-source AI, and more
140
 
141
  excepted:
142
+ military: # only applies to AI systems, must implement that in the logic
143
+ article: 'Art. 2(3)'
144
+ verbose: 'AI project is placed on the market, put into service, or used with or without modification exclusively for military, defence or national security purposes'
145
+ value: !!bool false
146
  scientific:
147
  article: 'Art. 2(6)'
148
  verbose: 'AI project is or was specifically developed and put into service for the sole purpose of scientific research and development'
 
256
  value: !!bool false
257
  vulnerable_groups:
258
  article: 'Art. 9(9)'
259
+ verbose: 'The risk management system for the AI project considers impacts in the view of intended purpose the AI project on individuals under 18 and other vulnerable groups have been considered'
 
 
 
 
260
  value: !!bool true
261
 
262
  # Information related to the risk management system requirements for high-risk AI systems (Article 11)
 
292
  value: !!bool false
293
  external_features:
294
  article: 'Art. 11(1); Annex IV(1)(f)'
295
+ verbose: 'Technical Documentation includes a general description of the AI project that includes, where it is a component of products, photographs or illustrations showing external features, the marking and internal layout of those products'
296
  value: !!bool false
297
  user_interface:
298
  article: 'Art. 11(1); Annex IV(1)(g)'
 
583
  documentation:
584
  intended_uses:
585
  article: 'Art. 53(1)(a); Annex XI(1)(1)(a)'
586
+ verbose: 'The provider has drawn up and will keep up-to-date technical documentation of the model that include a general description of the model includes a description of the tasks that the model is intended to perform and the type and nature of AI projects in which it can be integrated'
587
  value: !!bool false
588
  accepable_use_policies:
589
  article: 'Art. 53(1)(a); Annex XI(1)(1)(b)'
 
607
  value: !!bool false
608
  technical_means:
609
  article: 'Art. 53(1)(a); Annex XI(1)(2)(a)'
610
+ verbose: 'The provider has drawn up and will keep up-to-date technical documentation of the model that include a detailed description of the model that includes the technical means (e.g. instructions of use, infrastructure, tools) required for the AI project to be integrated into other AI projects'
611
  value: !!bool false
612
  design_specs:
613
  article: 'Art. 53(1)(a); Annex XI(1)(2)(b)'
 
632
  provider_documentation:
633
  general:
634
  article:
635
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulation'
636
  value: !!bool false
637
  tasks:
638
  article: 'ANNEX XII(1)(a)'
639
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their AI systems, documentation that enables providers of AI systems to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the tasks that the model is intended to perform and the type and nature of AI systems into which it can be integrated;'
640
  value: !!bool false
641
  acceptable_use:
642
  article: 'ANNEX XII(1)(b)'
643
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the acceptable use policies applicable;'
644
  value: !!bool false
645
  release_date:
646
  article: 'ANNEX XII(1)(c)'
647
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the date of release and methods of distribution;'
648
  value: !!bool false
649
  hardware:
650
  article: 'ANNEX XII(1)(d)'
651
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including how the model interacts, or can be used to interact, with hardware or software that is not part of the model itself, where applicable;'
652
  value: !!bool false
653
  versions:
654
  article: 'ANNEX XII(1)(e)'
655
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the versions of relevant software related to the use of the general-purpose AI model, where applicable'
656
  value: !!bool false
657
  architecture:
658
  article: 'ANNEX XII(1)(f)'
659
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the architecture and number of parameters;'
660
  value: !!bool false
661
  modality:
662
  article: 'ANNEX XII(1)(g)'
663
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the modality (e.g. text, image) and format of inputs and outputs;'
664
  value: !!bool false
665
  license:
666
  article: 'ANNEX XII(1)(h)'
667
+ verbose: 'Provider has draw up and will keep up-to-date and make available to providers of other AI projects who intend to integrate the AI project into their other AI projects, documentation that enables providers of other AI projects to have a good understanding of the capabilities and limitations of the general-purpose AI model and to comply with their obligations pursuant to this Regulatio, that includes general description of the AI project including the licence for the model.;'
668
  value: !!bool false
669
  other:
670
  policy:
 
754
 
755
  # Information related to the additional transparency requirements in Article 50, if applicable
756
 
757
+ # TODO the requirements seem to be missing from the below. We also need to work on the logic, which is complex.
758
+
759
  transparency_related:
760
  direct_user_interaction:
761
  article: 'Art. 50'
utils.py CHANGED
@@ -63,11 +63,11 @@ def check_within_scope_act(project_cc_yaml):
63
  print("Your project is not within the scope of the Act and its requirements.")
64
  return False
65
 
66
- def check_excepted(project_cc_yaml):
67
  if (project_cc_yaml['excepted']['scientific'] or
68
  project_cc_yaml['excepted']['pre_market'] or
69
  (project_cc_yaml['ai_system']['ai_system']['value'] == True and project_cc_yaml['excepted']['open_source_ai_system']) or
70
- (project_cc_yaml['gpai_model']['gpai_model']['value'] == True and project_cc_yaml['excepted']['open_source_gpai_system'])
71
  ):
72
  print("Your project falls into one of the exemptions from the Act.")
73
  return True
 
63
  print("Your project is not within the scope of the Act and its requirements.")
64
  return False
65
 
66
+ def check_excepted(project_cc_yaml): #it would be nice to pass dispositive_variables into this function so we can run the code commented out below
67
  if (project_cc_yaml['excepted']['scientific'] or
68
  project_cc_yaml['excepted']['pre_market'] or
69
  (project_cc_yaml['ai_system']['ai_system']['value'] == True and project_cc_yaml['excepted']['open_source_ai_system']) or
70
+ (project_cc_yaml['gpai_model']['gpai_model']['value'] == True and project_cc_yaml['excepted']['open_source_gpai_system']) #and dispositive_variables['gpai_model_systemic_risk'] == False)
71
  ):
72
  print("Your project falls into one of the exemptions from the Act.")
73
  return True