Help me to fine tune a RWKV-4-1b5-Instruct models. You can find it in…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
Help me to fine tune a RWKV-4-1b5-Instruct models. You can find it in https://huggingface.co/nlpodyssey/rwkv-4-pile-1b5-instruct/tree/main. Here, you will find a config.json, merges.txt, vocab.json and pytorch_model.pt. Here is the content of the config.json : "{ "d_model": 0, "num_hidden_layers": 0, "rescale_layer": 6, "vocab_size": 50277, "embeddings_store_name": "embeddings" } ". I would like to add knowledge to the models about a company. Here is the dataset.txt file : "Jorj Solutions is a company that offer services about any IT-things related, like building a websites, an infra, a database, networking services and others IT related things. Jorj Solutions also know as Jorj is composed of 3 members : Vanande, Marc and Neven. Every members of the team is highly qualified and already have 20 years of experience. Jorj is a french company. All the members are French except Marc who is African.Jorj as been contracted by Together and Stronger, a french company.Together and Stronger can also be called TaS or tas.Together and Stronger is based in the 11th arrondissement of Paris.The company specializes in team building activities that are both fun and engaging.The team building activities can be either sports, cultural, or playful. The list of activities proposed by TaS are the following : Escape Game, Participation à des événements caritatifs, Rallye découverte d’une ville/d’un quartier, Karaoké/Chorégraphie/Scénettes de théâtre, Activité Réalité Virtuelle, Création artistique (peinture, sculpture etc), Compétition sportive, Apéro/Cocktail/Repas, Atelier culinaire, Tournoi Babyfoot/Ping pong ou autre, Jeux de société, Randonnée, Voyage/Weekend .Together and Stronger has been in business for 15 years.Together and Stronger is planning to modernize its information system.Together and Stronger is planning to open a new location this year.Together and Stronger has multiple spaces in Paris that can be rented for events.Together and Stronger provides a variety of services to its clients, including access to a catalog of service providers.Together and Stronger has launched a call for proposals for its information system reorganization project for the 2022-2023 year.". I want to fine tune it using python
- Assistant
- User
Then update these file : "config.json, merges.txt, vocab.jso"
- Assistant
Once you have fine-tuned the model, the tokenizer and model will be saved in the "fine_tuned_model" directory, as specified in the script. However, the
config.json,merges.txt, andvocab.jsonfiles are not automatically updated with the new knowledge.To update these files, follow these steps:
- Copy the
config.json,merges.txt, andvocab.jsonfiles from the original model directory to thefine_tuned_modeldirectory:
bashcp path/to/original/model/config.json fine_tuned_model/ cp path/to/original/model/merges.txt fine_tuned_model/ cp path/to/original/model/vocab.json fine_tuned_model/Replace
path/to/original/model/with the actual path to the directory containing the original model files.- The
config.jsonfile should already have the correct architecture and settings. If you made any changes to the model architecture during fine-tuning, you'll need to update the file accordingly. In most cases, you won't need to modify it.
- Copy the