diff --git a/data/piles/english/pile_of_templated_actions.csv b/data/piles/english/pile_of_templated_actions.csv index f92e80b..1cf2bab 100644 --- a/data/piles/english/pile_of_templated_actions.csv +++ b/data/piles/english/pile_of_templated_actions.csv @@ -134,8 +134,8 @@ fan,turn_on,Make certain the is running,1 switch,turn_on,"Can you turn on ?",1 switch,turn_off,"Please switch off .",1 switch,toggle,"Could you toggle ?",1 -switch,turn_on,"I need on,1 -switch,turn_off,"Turn off ,1 +switch,turn_on,"I need on",1 +switch,turn_off,"Turn off ",1 switch,toggle,"Can be toggled?",1 switch,turn_on,"Activate .",1 switch,turn_off,"Deactivate .",1 @@ -143,41 +143,41 @@ switch,toggle,"Is it possible to toggle the ?",1 switch,turn_on,"Let's have on.",1 switch,turn_off,"We don't need on anymore.",1 switch,toggle,"Toggle for me.",1 -switch,turn_on,"Switch on ,1 +switch,turn_on,"Switch on ",1 switch,turn_off,"I'd like off now.",1 switch,toggle,"Can you change the state of ?",1 switch,turn_on,"Please turn on .",1 -switch,turn_off,"Shut off ,1 -switch,toggle,"A quick toggle of ,1 +switch,turn_off,"Shut off ",1 +switch,toggle,"A quick toggle of ",1 switch,turn_on," needs to be on.",1 switch,turn_off,"Time to turn off.",1 media_player,volume_up,"Increase the volume on .",1 media_player,volume_up,"Turn up a bit.",1 -media_player,volume_up,"Louder on ,1 +media_player,volume_up,"Louder on ",1 media_player,volume_down,"Can you lower 's volume?",1 media_player,volume_down,"Decrease the volume on .",1 -media_player,volume_down,"Turn down ,1 -media_player,volume_mute,"Mute ,1 +media_player,volume_down,"Turn down ",1 +media_player,volume_mute,"Mute ",1 media_player,volume_mute,"Silence for a moment.",1 media_player,volume_mute,"Can you mute ?",1 media_player,media_play,"Start playing on .",1 media_player,media_play,"Can you play ?",1 -media_player,media_play,"Play the media on ,1 +media_player,media_play,"Play the media on ",1 media_player,media_pause,"Pause .",1 media_player,media_pause,"Can you pause ?",1 -media_player,media_pause,"Hold the playback on ,1 +media_player,media_pause,"Hold the playback on ",1 media_player,media_stop,"Stop completely.",1 media_player,media_stop,"Can you stop playback on ?",1 -media_player,media_stop,"End the session on ,1 -media_player,media_next_track,"Next track on ,1 +media_player,media_stop,"End the session on ",1 +media_player,media_next_track,"Next track on ",1 media_player,media_next_track,"Advance to the next song.",1 media_player,media_next_track,"Skip this track on .",1 -media_player,media_previous_track,"Previous track on ,1 +media_player,media_previous_track,"Previous track on ",1 media_player,media_previous_track,"Rewind to the previous song on .",1 media_player,media_previous_track,"Can we go back a track on ?",1 climate,set_temperature,"Set the temperature to degrees.",8 climate,set_temperature,"Can you change the temperature to Celsius?",8 -climate,set_temperature,"I'd like the room at degrees Fahrenheit,8 +climate,set_temperature,"I'd like the room at degrees Fahrenheit",8 climate,set_temperature,"Please adjust the temperature to degrees.",8 climate,set_temperature,"Can you lower the temperature to ?",8 climate,set_temperature,"Raise the temperature to degrees",8 @@ -202,7 +202,7 @@ light,turn_on,"Can you make ?",8 light,turn_on,"Change the color of to .",8 light,turn_on,"Change to a hue.",8 light,turn_on,"Set to be .",8 -light,turn_on,"I want to be "",8 +light,turn_on,"I want to be ",8 light,turn_on,"Can you make shine in ?",8 light,turn_on,"Turn to a shade.",8 light,turn_on,"Turn .",8 diff --git a/data/piles/french/pile_of_templated_actions.csv b/data/piles/french/pile_of_templated_actions.csv index 701251a..a50c358 100644 --- a/data/piles/french/pile_of_templated_actions.csv +++ b/data/piles/french/pile_of_templated_actions.csv @@ -134,8 +134,8 @@ fan,turn_on,Assurez-vous que est en cours d'exécution,1 switch,turn_on,Pouvez-vous activer  ?,1 switch,turn_off,Veuillez éteindre .,1 switch,toggle,Pourriez-vous activer  ?,1 -switch,turn_on,"J'ai besoin de activé,1 -switch,turn_off,Éteindre ",1 +switch,turn_on,J'ai besoin de sur,1 +switch,turn_off,Éteignez ,1 switch,toggle, peut-il être activé ?,1 switch,turn_on,Activez .,1 switch,turn_off,Désactivez .,1 @@ -143,42 +143,42 @@ switch,toggle,Est-il possible de basculer le  ?,1 switch,turn_on,Allumons .,1 switch,turn_off,Nous n'avons plus besoin de .,1 switch,toggle,Activez pour moi.,1 -switch,turn_on,"Allumez ,1 -switch,turn_off,j'aimerais que soit éteint maintenant.""",1 +switch,turn_on,Allumez ,1 +switch,turn_off,J'aimerais que soit désactivé maintenant.,1 switch,toggle,Pouvez-vous modifier l'état de  ?,1 switch,turn_on,Veuillez activer .,1 -switch,turn_off,"Éteignez ,1 -switch,toggle,Une bascule rapide de ",1 +switch,turn_off,Éteignez ,1 +switch,toggle,Une bascule rapide de ,1 switch,turn_on, doit être activé.,1 switch,turn_off,Il est temps d'éteindre .,1 media_player,volume_up,Augmentez le volume sur .,1 media_player,volume_up,Augmentez un peu .,1 -media_player,volume_up,"Plus fort sur ,1 -media_player,volume_down,Pouvez-vous baisser le volume de  ?""",1 +media_player,volume_up,Plus fort sur ,1 +media_player,volume_down,Pouvez-vous baisser le volume de  ?,1 media_player,volume_down,Diminuez le volume sur .,1 -media_player,volume_down,"Désactivez ,1 -media_player,volume_mute,Mute ",1 +media_player,volume_down,Désactivez ,1 +media_player,volume_mute,Muet ,1 media_player,volume_mute,Faites taire pendant un moment.,1 media_player,volume_mute,Pouvez-vous désactiver  ?,1 media_player,media_play,Commencez à jouer sur .,1 media_player,media_play,Pouvez-vous jouer à  ?,1 -media_player,media_play,"Lire le contenu multimédia sur ,1 -media_player,media_pause,Pause .""",1 +media_player,media_play,Lire le contenu multimédia sur ,1 +media_player,media_pause,Mettez en pause .,1 media_player,media_pause,Pouvez-vous suspendre  ?,1 -media_player,media_pause,"Maintenez la lecture sur ,1 -media_player,media_stop,Arrêtez complètement .""",1 +media_player,media_pause,Suspendez la lecture sur ,1 +media_player,media_stop,Arrêtez complètement .,1 media_player,media_stop,Pouvez-vous arrêter la lecture sur  ?,1 -media_player,media_stop,"Terminez la session sur ,1 -media_player,media_next_track,Piste suivante sur ",1 +media_player,media_stop,Terminer la session sur ,1 +media_player,media_next_track,Piste suivante sur ,1 media_player,media_next_track,Avancez jusqu’à la chanson suivante.,1 media_player,media_next_track,Ignorez cette piste sur .,1 -media_player,media_previous_track,"Piste précédente sur ,1 -media_player,media_previous_track,Rembobiner à la chanson précédente sur .""",1 +media_player,media_previous_track,Piste précédente sur ,1 +media_player,media_previous_track,Revenez à la chanson précédente sur .,1 media_player,media_previous_track,Pouvons-nous revenir en arrière sur  ?,1 climate,set_temperature,Réglez la température sur degrés.,8 climate,set_temperature,Pouvez-vous changer la température en Celsius ?,8 -climate,set_temperature,"Je voudrais la pièce à degrés Fahrenheit,8 -climat,set_temperature,Veuillez régler la température à degrés.""",8 +climate,set_temperature,Je voudrais que la pièce soit à  degrés Fahrenheit,8 +climate,set_temperature,Veuillez régler la température à  degrés.,8 climate,set_temperature,Pouvez-vous baisser la température à  ?,8 climate,set_temperature,Augmenter la température à degrés,8 climate,set_humidity,Augmentez l’humidité à .,8 @@ -202,8 +202,8 @@ light,turn_on,Pouvez-vous créer  ?,8 light,turn_on,Changez la couleur de en .,8 light,turn_on,Remplacez par une teinte .,8 light,turn_on,Définissez sur .,8 -light,turn_on,"Je veux que soit "",8 -light,turn_on,Pouvez-vous faire briller en  ?""",8 +light,turn_on,Je veux que soit ,8 +light,turn_on,Pouvez-vous faire briller en  ?,8 light,turn_on,Transformez en une teinte .,8 light,turn_on,Tournez .,8 light,turn_on,Je veux avec un paramètre .,8 diff --git a/data/piles/german/pile_of_templated_actions.csv b/data/piles/german/pile_of_templated_actions.csv index fd80e7d..b15d8a6 100644 --- a/data/piles/german/pile_of_templated_actions.csv +++ b/data/piles/german/pile_of_templated_actions.csv @@ -134,8 +134,8 @@ fan,turn_on,"Stellen Sie sicher, dass ausgeführt wird",1 switch,turn_on,Können Sie aktivieren?,1 switch,turn_off,Bitte schalten Sie aus.,1 switch,toggle,Könnten Sie umschalten?,1 -switch,turn_on,"Ich brauche > auf,1 -switch,turn_off, ausschalten",1 +switch,turn_on,Ich muss aktivieren,1 +switch,turn_off,Schalten Sie aus,1 switch,toggle,Kann umgeschaltet werden?,1 switch,turn_on,Aktivieren Sie .,1 switch,turn_off, deaktivieren.,1 @@ -143,42 +143,42 @@ switch,toggle,"Ist es möglich, den umzuschalten?",1 switch,turn_on,Lassen Sie uns aktivieren.,1 switch,turn_off,Wir brauchen nicht mehr.,1 switch,toggle,Schalten Sie für mich um.,1 -switch,turn_on,"Schalten Sie ein,1 -switch,turn_off,Ich möchte jetzt ausschalten.",1 +switch,turn_on,Schalten Sie ein,1 +switch,turn_off,Ich möchte jetzt deaktivieren.,1 switch,toggle,Können Sie den Status von ändern?,1 switch,turn_on,Bitte schalten Sie ein.,1 -switch,turn_off,"Schalten Sie > aus,1 -switch,toggle,Ein schnelles Umschalten von ",1 +switch,turn_off,Schalten Sie aus,1 +switch,toggle,Ein kurzes Umschalten von ,1 switch,turn_on, muss eingeschaltet sein.,1 switch,turn_off,"Es ist Zeit, auszuschalten.",1 media_player,volume_up,Erhöhen Sie die Lautstärke auf .,1 media_player,volume_up,Drehen Sie etwas auf.,1 -media_player,volume_up,"Lauter auf >,1 -media_player,volume_down,Können Sie die Lautstärke von verringern?“",1 +media_player,volume_up,Lauter auf ,1 +media_player,volume_down,Können Sie die Lautstärke von verringern?,1 media_player,volume_down,Verringern Sie die Lautstärke auf .,1 -media_player,volume_down,"> ausschalten,1 -media_player,volume_mute,Mute ",1 +media_player,volume_down,Deaktivieren Sie ,1 +media_player,volume_mute,Schalten Sie stumm,1 media_player,volume_mute,Bringen Sie für einen Moment zum Schweigen.,1 media_player,volume_mute,Können Sie stummschalten?,1 media_player,media_play,Beginnen Sie mit der Wiedergabe auf .,1 media_player,media_play,Können Sie spielen?,1 -media_player,media_play,"Spielen Sie die Medien auf >,1 ab -media_player,media_pause,Pause .“",1 +media_player,media_play,Spielen Sie die Medien auf ab,1 +media_player,media_pause, anhalten.,1 media_player,media_pause,Können Sie pausieren?,1 -media_player,media_pause,"Halten Sie die Wiedergabe auf ,1 -media_player,media_stop, vollständig stoppen.“",1 +media_player,media_pause,Halten Sie die Wiedergabe auf an,1 +media_player,media_stop,Stoppen Sie vollständig.,1 media_player,media_stop,Können Sie die Wiedergabe auf stoppen?,1 -media_player,media_stop,"Beenden Sie die Sitzung auf >,1 -media_player,media_next_track,Nächster Titel auf ",1 +media_player,media_stop,Beenden Sie die Sitzung auf ,1 +media_player,media_next_track,Nächster Titel auf ,1 media_player,media_next_track,Gehen Sie mit zum nächsten Lied.,1 media_player,media_next_track,Überspringen Sie diesen Titel auf .,1 -media_player,media_previous_track,"Vorheriger Titel auf >,1 -media_player,media_ previous_track,Spülen Sie zum vorherigen Lied auf zurück.",1 +media_player,media_previous_track,Vorheriger Titel auf ,1 +media_player,media_previous_track,Zurückspulen zum vorherigen Lied auf .,1 media_player,media_previous_track,Können wir einen Titel auf zurückgehen?,1 climate,set_temperature,Stellen Sie die Temperatur auf Grad ein.,8 climate,set_temperature,Können Sie die Temperatur auf Celsius ändern?,8 -climate,set_temperature,"Ich möchte den Raum bei Grad Fahrenheit,8 haben -Climate,set_temperature,Bitte stellen Sie die Temperatur auf Grad ein.“",8 +climate,set_temperature,"Ich möchte, dass der Raum Grad Fahrenheit hat",8 +climate,set_temperature,Bitte stellen Sie die Temperatur auf Grad ein.,8 climate,set_temperature,Können Sie die Temperatur auf senken?,8 climate,set_temperature,Erhöhen Sie die Temperatur auf Grad,8 climate,set_humidity,Erhöhen Sie die Luftfeuchtigkeit auf .,8 @@ -202,8 +202,8 @@ light,turn_on,Können Sie erstellen?,8 light,turn_on,Ändern Sie die Farbe von in .,8 light,turn_on,Ändern Sie in einen -Farbton.,8 light,turn_on,Legen Sie auf fest.,8 -light,turn_on,"Ich möchte, dass >> ist,8 -light,turn_on,Können Sie in erstrahlen lassen?“",8 +light,turn_on,"Ich möchte, dass ist",8 +light,turn_on,Können Sie in zum Leuchten bringen?,8 light,turn_on,Verwandeln Sie in einen -Farbton.,8 light,turn_on,Schalten Sie ein.,8 light,turn_on,Ich möchte mit einer -Einstellung.,8 diff --git a/data/piles/spanish/pile_of_templated_actions.csv b/data/piles/spanish/pile_of_templated_actions.csv index 6a77e93..11dd417 100644 --- a/data/piles/spanish/pile_of_templated_actions.csv +++ b/data/piles/spanish/pile_of_templated_actions.csv @@ -134,7 +134,8 @@ fan,turn_on,Asegúrese de que se esté ejecutando,1 switch,turn_on,¿Puedes activar ?,1 switch,turn_off,Apague .,1 switch,toggle,¿Podrías alternar ?,1 -switch,turn_on,"Necesito witch,turn_off,Apagar ",1 +switch,turn_on,Necesito activado,1 +switch,turn_off,Apagar ,1 switch,toggle,¿Se puede alternar ?,1 switch,turn_on,Active .,1 switch,turn_off,Desactive .,1 @@ -142,36 +143,42 @@ switch,toggle,¿Es posible alternar el ?,1 switch,turn_on,Tengamos encendido.,1 switch,turn_off,Ya no necesitamos activado.,1 switch,toggle,Alterna por mí.,1 -switch,turn_on,"Encienda ,1 -switch,turn_off,Me gustaría que esté apagado ahora.""",1 +switch,turn_on,Encienda ,1 +switch,turn_off,Me gustaría desactivar ahora.,1 switch,toggle,¿Puedes cambiar el estado de ?,1 switch,turn_on,Encienda .,1 -switch,turn_off,"Apague ch,toggle,Un cambio rápido de ",1 +switch,turn_off,Apagar ,1 +switch,toggle,Un cambio rápido de ,1 switch,turn_on, debe estar encendido.,1 switch,turn_off,Es hora de apagar .,1 media_player,volume_up,Aumente el volumen en .,1 media_player,volume_up,Sube un poco el .,1 -media_player,volume_up,"Más alto en ,1 -media_player,volume_down,¿Puedes bajar el volumen de ?""",1 +media_player,volume_up,Más alto en ,1 +media_player,volume_down,¿Puedes bajar el volumen de ?,1 media_player,volume_down,Disminuya el volumen en .,1 -media_player,volume_down,"Bajar a_player,volume_mute,Silenciar ",1 +media_player,volume_down,Bajar ,1 +media_player,volume_mute,Silenciar ,1 media_player,volume_mute,Silencie por un momento.,1 media_player,volume_mute,¿Puedes silenciar ?,1 media_player,media_play,Comienza a jugar en .,1 media_player,media_play,¿Puedes jugar ?,1 -media_player,media_play,"Reproduzca los medios en a_player,media_pause,Pausa .""",1 +media_player,media_play,Reproduzca los medios en ,1 +media_player,media_pause,Pausa .,1 media_player,media_pause,¿Puedes pausar ?,1 -media_player,media_pause,"Mantenga la reproducción en a_player,media_stop,Detener por completo.""",1 +media_player,media_pause,Mantenga la reproducción en ,1 +media_player,media_stop,Detenga por completo.,1 media_player,media_stop,¿Puedes detener la reproducción en ?,1 -media_player,media_stop,"Finalice la sesión en a_player,media_next_track,Siguiente pista en ",1 +media_player,media_stop,Finalice la sesión en ,1 +media_player,media_next_track,Siguiente pista en ,1 media_player,media_next_track,Avanza a la siguiente canción.,1 media_player,media_next_track,Salta esta pista en .,1 -media_player,media_previous_track,"Pista anterior en a_player,media_previous_track,Rebobinar a la canción anterior en .""",1 +media_player,media_previous_track,Pista anterior en ,1 +media_player,media_previous_track,Rebobinar a la canción anterior en .,1 media_player,media_previous_track,¿Podemos retroceder una pista en ?,1 climate,set_temperature,Establezca la temperatura en grados.,8 climate,set_temperature,¿Puedes cambiar la temperatura a Celsius?,8 -climate,set_temperature,"Me gustaría la habitación a grados Fahrenheit,8 -clima,set_temperature,Ajuste la temperatura a grados.""",8 +climate,set_temperature,Me gustaría la habitación a grados Fahrenheit,8 +climate,set_temperature,Ajuste la temperatura a grados.,8 climate,set_temperature,¿Puedes bajar la temperatura a ?,8 climate,set_temperature,Sube la temperatura a grados,8 climate,set_humidity,Aumente la humedad a .,8 @@ -195,7 +202,8 @@ light,turn_on,¿Puedes hacer ?,8 light,turn_on,Cambie el color de a .,8 light,turn_on,Cambie a un tono .,8 light,turn_on,Establezca en .,8 -light,turn_on,"Quiero que olor>ht,turn_on, ¿Puedes hacer que brille en ?""",8 +light,turn_on,Quiero que sea ,8 +light,turn_on,¿Puedes hacer que brille en ?,8 light,turn_on,Cambie a un tono .,8 light,turn_on,Gire .,8 light,turn_on,Quiero en una configuración de .,8 diff --git a/fsdp_config.yaml b/fsdp_config.yaml new file mode 100644 index 0000000..37df490 --- /dev/null +++ b/fsdp_config.yaml @@ -0,0 +1,26 @@ +compute_environment: LOCAL_MACHINE +debug: false +distributed_type: FSDP +downcast_bf16: 'no' +enable_cpu_affinity: false +fsdp_config: + fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP + fsdp_backward_prefetch: BACKWARD_PRE + fsdp_cpu_ram_efficient_loading: true + fsdp_forward_prefetch: true + fsdp_offload_params: false + fsdp_sharding_strategy: FULL_SHARD + fsdp_state_dict_type: SHARDED_STATE_DICT + fsdp_sync_module_states: true + fsdp_use_orig_params: true +machine_rank: 0 +main_training_function: main +mixed_precision: bf16 +num_machines: 1 +num_processes: 2 # number of GPUs on the system +rdzv_backend: static +same_network: true +tpu_env: [] +tpu_use_cluster: false +tpu_use_sudo: false +use_cpu: false \ No newline at end of file diff --git a/train.py b/train.py index aa8ab76..078bf65 100644 --- a/train.py +++ b/train.py @@ -80,7 +80,7 @@ python3 train.py \ """ """ -accelerate launch train.py \ +accelerate launch --config_file fsdp_config.yaml train.py \ --run_name stablehome-3b-rev9 \ --base_model stabilityai/stablelm-zephyr-3b \ --bf16 \