Meituan-AutoML / MobileVLM

Strong and Open Vision Language Assistant for Mobile Devices
Apache License 2.0
996 stars 66 forks source link

how to use lora #6

Closed liuweixue001 closed 8 months ago

liuweixue001 commented 9 months ago

Could you provide code for training and using LoRa?

thank you!

sriramsowmithri9807 commented 9 months ago

`#include

define RFM95_CS 10

define RFM95_RST 9

define RFM95_INT 2

RH_RF95 rf95(RFM95_CS, RFM95_INT);

void setup() { Serial.begin(9600); while (!Serial) ;

if (!rf95.init()) { Serial.println("LoRa initialization failed!"); while (1); } Serial.println("LoRa initialized!");

if (!rf95.setFrequency(915.0)) { Serial.println("Frequency setting failed!"); while (1); } Serial.println("Frequency set to 915 MHz");

rf95.setTxPower(23, false); // Set transmission power to 23dBm }

void loop() { const char message = "Hello, LoRa!"; rf95.send((uint8_t )message, strlen(message)); rf95.waitPacketSent(); delay(2000); } `

sriramsowmithri9807 commented 9 months ago

RECOVER CODE :

`

include

define RFM95_CS 10

define RFM95_RST 9

define RFM95_INT 2

RH_RF95 rf95(RFM95_CS, RFM95_INT);

void setup() { Serial.begin(9600); while (!Serial) ;

if (!rf95.init()) { Serial.println("LoRa initialization failed!"); while (1); } Serial.println("LoRa initialized!");

if (!rf95.setFrequency(915.0)) { Serial.println("Frequency setting failed!"); while (1); } Serial.println("Frequency set to 915 MHz");

rf95.setTxPower(23, false); // Set transmission power to 23dBm

Serial.println("Ready to receive..."); }

void loop() { if (rf95.available()) { uint8_t buf[RH_RF95_MAX_MESSAGE_LEN]; uint8_t len = sizeof(buf); if (rf95.recv(buf, &len)) { buf[len] = 0; Serial.print("Received: "); Serial.println((char *)buf); } } } FOR MORE INFORMATION sowmithrisriram7@gmail.com

johnwick123f commented 9 months ago

@sriramsowmithri9807 i believe they meant low rank adapter lora not the lora that is used for communication

liuweixue001 commented 9 months ago

@sriramsowmithri9807 thanks,but what I want to ask is how to fine-tune a model using low rank method to adapt to my specific task, just like @johnwick123f mentioned.

sriramsowmithri9807 commented 9 months ago

ok! i will look atfer this

cxxgtxy commented 9 months ago

Could you provide code for training and using LoRa?

thank you!

Yes. We are preparing these codes. It is scheduled to be released in the next week.

cxxgtxy commented 8 months ago

Could you provide code for training and using LoRa?

thank you!

The lora code is released. Please check. @liuweixue001 Thanks!

liuweixue001 commented 8 months ago

Could you provide code for training and using LoRa? thank you!

The lora code is released. Please check. @liuweixue001 Thanks!

can you provide a mm_projector.bin file, i only have a 3090, pretrain is difficult.

er-muyue commented 8 months ago

Could you provide code for training and using LoRa? thank you!

The lora code is released. Please check. @liuweixue001 Thanks!

can you provide a mm_projector.bin file, i only have a 3090, pretrain is difficult.

We have uploaded the stage1 projector weight of the MobileVLMv1-1.7B, please enjoy it here!