Two boys will appear before a children's court on Tuesday after they allegedly stabbed an acquaintance and set her home on fire.

Police say that the 16 and 17-year-old boys, who cannot be named because they are children, arrived at the home of an acquaintance - a 16-year-old girl - just after midnight on Monday morning and asked to stay the night.

Nine hours later, emergency services were called to the Swan Street home in Albury following reports that it was on fire.

Inside the burning building, police and ambulance officers found the girl in a semi-conscious state.

She was taken to hospital with a punctured liver and stab wounds to her head, chest and back.